/home/techb158/ileadtechnology.com/SSM/app/Http/Controllers/utility
Edit: /home/techb158/ileadtechnology.com/SSM/app/Http/Controllers/utility/EmailLogController.php (1556B)
request = $request;
$this->repo = $repo;
$this->middleware('permission:access-configuration');
$this->middleware('feature.available:email_log');
}
/**
* Used to get email logs
* @get ("/api/email-log")
* @return Response
*/
public function index()
{
return $this->ok($this->repo->paginate($this->request->all()));
}
/**
* Used to get email log detail
* @get ("/api/email-log/{id}")
* @return Response
*/
public function show($id)
{
return $this->ok($this->repo->findOrFail($id));
}
/**
* Used to delete email log
* @delete ("/api/email-log/{id}")
* @param ({
* @Parameter("id", type="integer", required="true", description="Id of email log to be deleted"),
* })
* @return Response
*/
public function destroy($id)
{
$email_log = $this->repo->findOrFail($id);
$this->repo->delete($email_log);
return $this->success(['message' => trans('utility.email_log_deleted')]);
}
}