diff --git a/bootstrap/app.php b/bootstrap/app.php index 24bd044b4..75601838f 100644 --- a/bootstrap/app.php +++ b/bootstrap/app.php @@ -53,6 +53,12 @@ return Application::configure(basePath: dirname(__DIR__)) 'recaptcha' => \App\Http\Middleware\VerifyReCaptcha::class, ]); }) + ->withSingletons([ + \Illuminate\Contracts\Console\Kernel::class => \App\Console\Kernel::class, + \Illuminate\Contracts\Debug\ExceptionHandler::class => \App\Exceptions\Handler::class, + ]) ->withExceptions(function (Exceptions $exceptions) { - // - })->create(); + + }) + ->create(); +