StocksNew/routes/CRUDgenerated/route.leavetypes.php.bak
Sampanna Rimal 53c0140f58 first commit
2024-08-27 17:48:06 +05:45

17 lines
1.3 KiB
PHP

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