withRouting( web: __DIR__.'/../routes/web.php', commands: __DIR__.'/../routes/console.php', health: '/up', then: function () { Route::middleware('web')->group(base_path('routes/admin.php')); }, ) ->withMiddleware(function (Middleware $middleware): void { $middleware->alias([ 'role' => \App\Http\Middleware\RoleMiddleware::class, ]); }) ->withExceptions(function (Exceptions $exceptions): void { // })->create();