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