New-OMIS/routes/CRUDgenerated/route.workoptions.php

16 lines
1.3 KiB
PHP
Raw Permalink Normal View History

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