group(function () { Route::resource('/permissions', PermissionsController::class); Route::get('/generate-permissions', [PermissionsController::class, 'generatePermissionFromRoutes'])->name('permission.generatePermissionFromRoutes'); });