group(function () { Route::get('/', [ShortcodesController::class, 'index'])->name('shortcodes.index'); Route::get('/create', [ShortcodesController::class, 'create'])->name('shortcodes.create'); Route::post('/store', [ShortcodesController::class, 'store'])->name('shortcodes.store'); Route::post('/sort', [ShortcodesController::class, 'sort'])->name('shortcodes.sort'); Route::post('/updatealias', [ShortcodesController::class, 'updatealias'])->name('shortcodes.updatealias'); Route::get('/show/{id}', [ShortcodesController::class, 'show'])->name('shortcodes.show'); Route::get('/edit/{id}', [ShortcodesController::class, 'edit'])->name('shortcodes.edit') ; Route::post('/update/{id}', [ShortcodesController::class, 'update'])->name('shortcodes.update'); Route::delete('/destroy/{id}', [ShortcodesController::class, 'destroy'])->name('shortcodes.destroy'); });