group(function () { Route::get('/', function () { return view('auth.login'); })->name('login'); Auth::routes(); Route::get('/generate-permissions', [PermissionController::class, 'generatePermissionFromRoutes'])->name('permission.generatePermissionFromRoutes'); Route::get('/dashboard', [App\Http\Controllers\HomeController::class, 'index'])->name('home'); });