|
|
|
@ -60,6 +60,10 @@ class Handler extends ExceptionHandler
|
|
|
|
|
return response()->view('webBuilder::errors.template_disabled', ['error' => 'business banned']);
|
|
|
|
|
} elseif ($exception instanceof HasRelationException) {
|
|
|
|
|
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);
|
|
|
|
|