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