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