New-OMIS/routes/CRUDgenerated/route.cities.php
2024-04-10 15:21:30 +05:45

17 lines
1.1 KiB
PHP

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