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

16 lines
1.2 KiB
PHP

<?php
use App\Http\Controllers\StaffsController;
use Illuminate\Support\Facades\Route;
Route::prefix("staffs")->group(function () {
Route::get('/', [StaffsController::class, 'index'])->name('staffs.index');
Route::get('/create', [StaffsController::class, 'create'])->name('staffs.create');
Route::post('/store', [StaffsController::class, 'store'])->name('staffs.store');
Route::post('/sort', [StaffsController::class, 'sort'])->name('staffs.sort');
Route::post('/updatealias', [StaffsController::class, 'updatealias'])->name('staffs.updatealias');
Route::get('/show/{id}', [StaffsController::class, 'show'])->name('staffs.show');
Route::get('/edit/{id}', [StaffsController::class, 'edit'])->name('staffs.edit') ;
Route::post('/update/{id}', [StaffsController::class, 'update'])->name('staffs.update');
Route::get('/destroy/{id}', [StaffsController::class, 'destroy'])->name('staffs.destroy');
Route::get('/toggle/{id}', [StaffsController::class, 'toggle'])->name('staffs.toggle');
Route::get('/clone/{id}', [StaffsController::class, 'clone'])->name('staffs.clone');
});