16 lines
1.3 KiB
PHP
16 lines
1.3 KiB
PHP
|
<?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');
|
||
|
});
|