group(function () { Route::get('/', [CitiesController::class, 'index'])->name('cities.index'); Route::get('/create', [CitiesController::class, 'create'])->name('cities.create'); Route::post('/store', [CitiesController::class, 'store'])->name('cities.store'); Route::post('/sort', [CitiesController::class, 'sort'])->name('cities.sort'); Route::post('/updatealias', [CitiesController::class, 'updatealias'])->name('cities.updatealias'); Route::get('/show/{id}', [CitiesController::class, 'show'])->name('cities.show'); Route::get('/edit/{id}', [CitiesController::class, 'edit'])->name('cities.edit') ; Route::post('/update/{id}', [CitiesController::class, 'update'])->name('cities.update'); Route::delete('/destroy/{id}', [CitiesController::class, 'destroy'])->name('cities.destroy'); Route::get('/toggle/{id}', [CitiesController::class, 'toggle'])->name('cities.toggle'); });