withRouting( commands: __DIR__.'/../routes/console.php', using: function () { Route::middleware(['web', \App\Http\Middleware\UserLocale::class]) ->group(base_path('routes/web.php')); Route::middleware(['web', 'auth', 'verified', \App\Http\Middleware\UserIsActive::class, \App\Http\Middleware\AdminPanel::class, \App\Http\Middleware\UserLocale::class]) ->prefix('admin') ->as('admin.') ->group(base_path('routes/admin.php')); }, ) ->withMiddleware(function (Middleware $middleware) { // }) ->withExceptions(function (Exceptions $exceptions) { // })->create();