ldc-arcadia-api/bootstrap/app.php

25 lines
657 B
PHP
Raw Permalink Normal View History

<?php
declare(strict_types=1);
use Illuminate\Foundation\Application;
use Illuminate\Support\Env;
$app = 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',
)
->withCommands([
__DIR__ . '/../src/Presentation/Console/Commands',
])
->withMiddleware(require __DIR__ . '/middlewares.php')
->withExceptions(require __DIR__ . '/exceptions.php')
->create();
$app->useAppPath($app->basePath('src/Presentation'));
return $app;