TanchoToplineCargo/routes/CRUDgenerated/route.menuitems.php

14 lines
1.0 KiB
PHP
Raw Normal View History

2024-05-05 04:47:49 +00:00
<?php
use App\Http\Controllers\MenuitemsController;
use Illuminate\Support\Facades\Route;
Route::prefix("menuitems")->group(function () {
Route::get('/', [MenuitemsController::class, 'index'])->name('menuitems.index');
Route::get('/create', [MenuitemsController::class, 'create'])->name('menuitems.create');
Route::post('/store', [MenuitemsController::class, 'store'])->name('menuitems.store');
Route::post('/sort', [MenuitemsController::class, 'sort'])->name('menuitems.sort');
Route::post('/updatealias', [MenuitemsController::class, 'updatealias'])->name('menuitems.updatealias');
Route::get('/show/{id}', [MenuitemsController::class, 'show'])->name('menuitems.show');
Route::get('/edit/{id}', [MenuitemsController::class, 'edit'])->name('menuitems.edit') ;
Route::post('/update/{id}', [MenuitemsController::class, 'update'])->name('menuitems.update');
Route::delete('/destroy/{id}', [MenuitemsController::class, 'destroy'])->name('menuitems.destroy');
});