25 lines
711 B
PHP
25 lines
711 B
PHP
<?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')
|
|
->withSchedule(require __DIR__ . '/schedule.php')
|
|
->create();
|
|
|
|
$app->useAppPath($app->basePath('src/Presentation'));
|
|
|
|
return $app;
|