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

16 lines
1.2 KiB
PHP
Raw Permalink Normal View History

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