master_template/routes/route.menulocations.php

14 lines
1.1 KiB
PHP
Raw Permalink Normal View History

2024-06-10 12:21:58 +00:00
<?php
use App\Http\Controllers\MenulocationsController;
use Illuminate\Support\Facades\Route;
Route::prefix("admin/menulocations")->group(function () {
Route::get('/', [MenulocationsController::class, 'index'])->name('menulocations.index');
Route::get('/create', [MenulocationsController::class, 'create'])->name('menulocations.create');
Route::post('/store', [MenulocationsController::class, 'store'])->name('menulocations.store');
Route::post('/sort', [MenulocationsController::class, 'sort'])->name('menulocations.sort');
Route::post('/updatealias', [MenulocationsController::class, 'updatealias'])->name('menulocations.updatealias');
Route::get('/show/{id}', [MenulocationsController::class, 'show'])->name('menulocations.show');
Route::get('/edit/{id}', [MenulocationsController::class, 'edit'])->name('menulocations.edit') ;
Route::post('/update/{id}', [MenulocationsController::class, 'update'])->name('menulocations.update');
Route::delete('/destroy/{id}', [MenulocationsController::class, 'destroy'])->name('menulocations.destroy');
});