/home/techb158/ileadtechnology.com/SSM/app/Exceptions
NameSizeModeActions
Handler.php24480644editdlrm
IpRestrictedException.php5960644editdlrm
MaintenanceModeException.php6840644editdlrm
Edit: /home/techb158/ileadtechnology.com/SSM/app/Exceptions/Handler.php (2448B)
bound('sentry') && $this->shouldReport($exception)) { app('sentry')->captureException($exception); } parent::report($exception); } /** * Render an exception into an HTTP response. * * @param \Illuminate\Http\Request $request * @param \Throwable $exception * @return \Illuminate\Http\Response */ public function render($request, Throwable $exception) { if ($exception instanceof FileNotFoundException) { return response()->view('errors.file-not-found', compact('exception'), 500); } else if ($exception instanceof AuthenticationException) { return response()->json(['message' => trans('auth.session_expired'), 'login' => 1], 401); } else if ($exception instanceof AuthorizationException) { return response()->json(['message' => trans('user.permission_denied')], 403); } else if ($exception instanceof UnauthorizedException) { return response()->json(['message' => trans('user.permission_denied')], 403); } else if ($exception instanceof MethodNotAllowedHttpException) { return response()->json(['message' => trans('general.something_wrong')], 403); } return parent::render($request, $exception); } }