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