This commit is contained in:
EwelinaLasowy 2022-03-29 10:42:34 +02:00
parent cfa7be65b5
commit 17bf64f837

View File

@ -21,7 +21,7 @@ class ExceptionHandler extends Handler
{ {
$response = parent::render($request, $e); $response = parent::render($request, $e);
if (!app()->environment(["local", "testing"]) && in_array($response->status(), [500, 503, 429, 419, 404, 403, 401], true)) { if (app()->environment("production") && in_array($response->status(), [500, 503, 429, 419, 404, 403, 401], true)) {
return Inertia::render("Error", [ return Inertia::render("Error", [
"status" => $response->status(), "status" => $response->status(),
]) ])