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

18 lines
1.2 KiB
PHP
Raw Permalink Normal View History

2024-04-05 05:22:15 +00:00
<?php
use Illuminate\Support\Facades\Route;
2024-04-14 12:44:29 +00:00
use Modules\Admin\Http\Controllers\DepartmentsController;
2024-04-10 09:36:30 +00:00
Route::prefix("department")->group(function () {
2024-04-14 12:44:29 +00:00
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');
});