Files
famous-ly4-ev/bootstrap/app.php
T

23 lines
713 B
PHP
Raw Normal View History

2026-08-04 21:40:49 +07:00
<?php
use Illuminate\Foundation\Application;
use Illuminate\Foundation\Configuration\Exceptions;
use Illuminate\Foundation\Configuration\Middleware;
use Modules\Identity\Http\Middleware\EnsureFastApiAgent;
2026-08-04 21:40:49 +07:00
return Application::configure(basePath: dirname(__DIR__))
->withRouting(
web: __DIR__.'/../routes/web.php',
2026-08-04 22:23:54 +07:00
api: __DIR__.'/../routes/api.php',
2026-08-04 21:40:49 +07:00
commands: __DIR__.'/../routes/console.php',
health: '/up',
)
->withMiddleware(function (Middleware $middleware): void {
$middleware->alias([
'fastapi.agent' => EnsureFastApiAgent::class,
]);
2026-08-04 21:40:49 +07:00
})
->withExceptions(function (Exceptions $exceptions): void {
//
})->create();