New-OMIS/routes/CRUDgenerated/route.provinces.php
2024-04-05 11:07:15 +05:45

15 lines
1.2 KiB
PHP

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