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

16 lines
1.2 KiB
PHP
Raw Normal View History

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