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

18 lines
1.1 KiB
PHP
Raw 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\DesignationsController;
Route::prefix("designation")->as('designation.')->group(function () {
Route::get('/', [DesignationsController::class, 'index'])->name('index');
Route::get('/create', [DesignationsController::class, 'create'])->name('create');
Route::post('/store', [DesignationsController::class, 'store'])->name('store');
Route::post('/sort', [DesignationsController::class, 'sort'])->name('sort');
Route::post('/updatealias', [DesignationsController::class, 'updatealias'])->name('updatealias');
Route::get('/show/{id}', [DesignationsController::class, 'show'])->name('show');
Route::get('/edit/{id}', [DesignationsController::class, 'edit'])->name('edit');
Route::post('/update/{id}', [DesignationsController::class, 'update'])->name('update');
Route::get('/destroy/{id}', [DesignationsController::class, 'destroy'])->name('destroy');
Route::get('/toggle/{id}', [DesignationsController::class, 'toggle'])->name('toggle');
Route::get('/clone/{id}', [DesignationsController::class, 'clone'])->name('clone');
});