New-OMIS/routes/CRUDgenerated/route.castes.php
2024-04-05 11:07:15 +05:45

16 lines
1.2 KiB
PHP

<?php
use App\Http\Controllers\CastesController;
use Illuminate\Support\Facades\Route;
Route::prefix("castes")->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');
});