Files
ai-web/bootstrap/app.php
jiangdong.cheng aa16c9f8c2
Some checks failed
Tests / PHP 8.2 (push) Has been cancelled
Tests / PHP 8.3 (push) Has been cancelled
Tests / PHP 8.4 (push) Has been cancelled
init
2026-02-11 17:28:36 +08:00

24 lines
736 B
PHP

<?php
use App\Http\Middleware\AdminAuthenticate;
use App\Http\Middleware\AdminGuest;
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',
commands: __DIR__.'/../routes/console.php',
health: '/up',
)
->withMiddleware(function (Middleware $middleware): void {
$middleware->alias([
'admin.auth' => AdminAuthenticate::class,
'admin.guest' => AdminGuest::class,
]);
})
->withExceptions(function (Exceptions $exceptions): void {
//
})->create();