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

15 lines
1.1 KiB
PHP

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