Removed custom exception handling logic and replaced it with a reference to the existing exceptions file.
18 lines
553 B
PHP
18 lines
553 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Illuminate\Foundation\Application;
|
|
use Illuminate\Foundation\Configuration\Exceptions;
|
|
use Illuminate\Support\Env;
|
|
|
|
return Application::configure(Env::get('APP_BASE_PATH', dirname(__DIR__)))
|
|
->withRouting(
|
|
web: __DIR__ . '/../routes/web.php',
|
|
api: __DIR__ . '/../routes/api.php',
|
|
commands: __DIR__ . '/../routes/console.php',
|
|
health: '/up',
|
|
)
|
|
->withMiddleware(require __DIR__ . '/middlewares.php')
|
|
->withExceptions(require __DIR__ . '/exceptions.php')
|
|
->create();
|