From 90d500be019dd56243b87c370a131f7622440c01 Mon Sep 17 00:00:00 2001 From: Connor Abbas Date: Thu, 17 Jul 2025 01:36:40 +0000 Subject: [PATCH] fix: show error based on app debug config instead of environment --- bootstrap/app.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrap/app.php b/bootstrap/app.php index a8386b03..6ceeee60 100644 --- a/bootstrap/app.php +++ b/bootstrap/app.php @@ -63,7 +63,7 @@ ->setStatusCode($statusCode); } else { // Show standard modal for easier debugging locally - if (app()->isLocal() && $statusCode === 500) { + if (app()->hasDebugModeEnabled() && $statusCode === 500) { return $response; } // Return JSON response for PrimeVue toast to display, handled by Inertia router event listener