10 use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
20 AuthorizationException::class,
22 ModelNotFoundException::class,
23 ValidationException::class,
48 if ($e instanceof \Illuminate\
Session\TokenMismatchException) {
49 return redirect()->back()->with(
'error', trans(
'general.token_expired'));
52 if ($this->isHttpException($e)) {
54 $statusCode = $e->getStatusCode();
56 switch ($statusCode) {
59 return response()->view(
'layouts/basic', [
60 'content' => view(
'errors/404')
65 return parent::render($request, $e);
report(Exception $e)
Report or log an exception.
render($request, Exception $e)
Render an exception into an HTTP response.