27 lines
966 B
PHP
27 lines
966 B
PHP
<?php
|
|
|
|
use Illuminate\Foundation\Application;
|
|
use Illuminate\Foundation\Configuration\Exceptions;
|
|
use Illuminate\Foundation\Configuration\Middleware;
|
|
|
|
return Application::configure(basePath: dirname(__DIR__))
|
|
->withRouting(
|
|
web: __DIR__ . '/../routes/web.php',
|
|
api: __DIR__ . '/../routes/api.php',
|
|
channels: __DIR__ . '/../routes/channels.php',
|
|
commands: __DIR__ . '/../routes/console.php',
|
|
health: '/up',
|
|
)
|
|
->withMiddleware(function (Middleware $middleware): void {
|
|
$middleware->alias([
|
|
'ensure.setup' => \App\Http\Middleware\EnsureSetupCompleted::class,
|
|
'signup.open' => \App\Http\Middleware\SignupOpen::class,
|
|
'auth.user' => \App\Http\Middleware\AuthenticatedMiddleware::class,
|
|
'guest.only' => \App\Http\Middleware\GuestOnlyMiddleware::class,
|
|
|
|
]);
|
|
})
|
|
->withExceptions(function (Exceptions $exceptions): void {
|
|
//
|
|
})->create();
|