name('index'); Route::prefix('users')->name('users.')->middleware('auth:web')->group(function (){ Route::get('/',[DashboardController::class,'index'])->name('dashboard'); Route::get('/profile/edit',[ProfileController::class,'edite'])->name('profile.edit'); Route::put('/profile/update',[ProfileController::class,'update'])->name('profile.update'); Route::get('/favorite',[FavoriteController::class,'index'])->name('favorite.index'); Route::post('favorite',[FavoriteController::class,'store'])->name('favorite.store'); Route::delete('/favorite/{favorite}',[FavoriteController::class,'destroy'])->name('favorite.destroy'); Route::get('/comments',[CommentController::class,'index'])->name('comments.index'); Route::get('/cities/{province}', [CityController::class, 'getCities']) ->name('cities.by.province'); });