master_template/routes/CRUDgenerated/route.menus.php

14 lines
995 B
PHP
Raw Permalink Normal View History

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