From 17bf64f8370752ece5a7995fab13b4f3fbc93ff2 Mon Sep 17 00:00:00 2001 From: EwelinaLasowy Date: Tue, 29 Mar 2022 10:42:34 +0200 Subject: [PATCH] #93 - cr fix --- app/Architecture/ExceptionHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Architecture/ExceptionHandler.php b/app/Architecture/ExceptionHandler.php index 6c17323..c63890d 100644 --- a/app/Architecture/ExceptionHandler.php +++ b/app/Architecture/ExceptionHandler.php @@ -21,7 +21,7 @@ class ExceptionHandler extends Handler { $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", [ "status" => $response->status(), ])