withRouting( web: __DIR__.'/../routes/web.php', commands: __DIR__.'/../routes/console.php', health: '/up', ) ->withMiddleware(function (Middleware $middleware): void { // /api/auth/* размещены в web.php (см. routes/web.php) и используют // session-based Sanctum auth. Token-based mode (через api.php) пока // не нужен — добавим если понадобится для интеграций. $middleware->alias([ 'tenant' => SetTenantContext::class, ]); }) ->withExceptions(function (Exceptions $exceptions): void { // })->create();