New-OMIS/Modules/Admin/routes/route.nationalities.php

18 lines
1.1 KiB
PHP
Raw Permalink Normal View History

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