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