Raffales-LMS/routes/route.testimonials.php
2024-04-24 10:17:18 +05:45

18 lines
1.1 KiB
PHP

<?php
use App\Http\Controllers\TestimonialsController;
use Illuminate\Support\Facades\Route;
Route::prefix("testimonials")->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');
});