feat: add custom page for error 404

pull/149/head
saeid 2 years ago
parent eb793458e6
commit e663bf9126

@ -60,6 +60,10 @@ class Handler extends ExceptionHandler
return response()->view('webBuilder::errors.template_disabled', ['error' => 'business banned']); return response()->view('webBuilder::errors.template_disabled', ['error' => 'business banned']);
} elseif ($exception instanceof HasRelationException) { } elseif ($exception instanceof HasRelationException) {
return response()->json(Responser::error([$exception->getMessage()]), 422); return response()->json(Responser::error([$exception->getMessage()]), 422);
} elseif ($this->isHttpException($exception)) {
if ($exception->getStatusCode() == 404) {
return response()->view('webBuilder::errors.404', [], 404);
}
} }
return parent::render($request, $exception); return parent::render($request, $exception);

Loading…
Cancel
Save