#90 - wip
This commit is contained in:
@@ -21,7 +21,15 @@ class ExceptionHandler extends Handler
|
||||
{
|
||||
$response = parent::render($request, $e);
|
||||
|
||||
if (app()->environment("production") && in_array($response->status(), [500, 503, 429, 419, 404, 403, 401], true)) {
|
||||
if (! app()->environment("production")) {
|
||||
return $response;
|
||||
}
|
||||
|
||||
if ($response->status() === 405) {
|
||||
$response->setStatusCode(404);
|
||||
}
|
||||
|
||||
if (in_array($response->status(), [500, 503, 429, 419, 404, 403, 401], true)) {
|
||||
return Inertia::render("Error", [
|
||||
"status" => $response->status(),
|
||||
])
|
||||
|
Reference in New Issue
Block a user