as('user.')->middleware('auth')->group(function () { Route::get('/', [UserController::class, 'index'])->name('index'); Route::get('/create', [UserController::class, 'create'])->name('create'); Route::post('/store', [UserController::class, 'store'])->name('store'); Route::put('/update/{user}', [UserController::class, 'update'])->name('update'); });