diff --git a/bootstrap/app.php b/bootstrap/app.php index 8605b560..a580bbe3 100644 --- a/bootstrap/app.php +++ b/bootstrap/app.php @@ -3,6 +3,7 @@ use App\Http\Middleware\RedirectToBanPage; use App\Http\Middleware\SetDefaultVersionForUrl; use Illuminate\Foundation\Application; +use Illuminate\Foundation\Configuration\Exceptions; use Illuminate\Foundation\Configuration\Middleware; return Application::configure(basePath: dirname(__DIR__)) @@ -25,4 +26,7 @@ 'goronich', ]); }) + ->withExceptions(function (Exceptions $exceptions) { + // ... + }) ->create();