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

16 lines
1.3 KiB
PHP
Raw Normal View History

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