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

18 lines
1.2 KiB
PHP

<?php
use Illuminate\Support\Facades\Route;
use Modules\Admin\Http\Controllers\DepartmentsController;
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');
});