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

16 lines
1.3 KiB
PHP

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