17 lines
1.1 KiB
PHP
17 lines
1.1 KiB
PHP
<?php
|
|
use App\Http\Controllers\ProvinceController;
|
|
use Illuminate\Support\Facades\Route;
|
|
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');
|
|
});
|