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