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

20 lines
1.3 KiB
PHP

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