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