diff --git a/bootstrap/app.php b/bootstrap/app.php index e39d6413..4640c042 100644 --- a/bootstrap/app.php +++ b/bootstrap/app.php @@ -68,7 +68,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