master_template/routes/CRUDgenerated/route.provinces.php

15 lines
1.2 KiB
PHP
Raw Normal View History

2024-06-15 16:38:54 +00:00
<?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');
});