New-OMIS/Modules/Admin/routes/route.provinces.php

18 lines
1.1 KiB
PHP
Raw Permalink Normal View History

2024-04-11 10:59:09 +00:00
<?php
use Illuminate\Support\Facades\Route;
use Modules\Admin\Http\Controllers\ProvinceController;
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');
});