TanchoToplineCargo/routes/CRUDgenerated/route.menus.php
2024-05-05 10:32:49 +05:45

14 lines
995 B
PHP

<?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');
});