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

16 lines
1.3 KiB
PHP

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