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

16 lines
1.3 KiB
PHP
Raw Permalink Normal View History

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