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

16 lines
1.2 KiB
PHP
Raw Normal View History

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