Merge branch 'master' of git.willaspace.com:WillaEngine-Project/WillaEngine

dev
Alireza Azizi 2 years ago
commit 3fbbff05ec

@ -61,7 +61,7 @@ class Handler extends ExceptionHandler
} elseif ($exception instanceof HasRelationException) {
return response()->json(Responser::error([$exception->getMessage()]), 422);
} elseif ($this->isHttpException($exception)) {
if ($exception->getStatusCode() == 404) {
if ($exception->getStatusCode() == 404 and in_array("web",$request->route()->middleware())) {
return response()->view('webBuilder::errors.404', [], 404);
}
}

Loading…
Cancel
Save