New-OMIS/routes/CRUDgenerated/route.departments.php
2024-04-10 15:21:30 +05:45

17 lines
1.3 KiB
PHP

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