New-OMIS/routes/CRUDgenerated/route.departments.php
2024-04-05 11:07:15 +05:45

16 lines
1.3 KiB
PHP

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