TanchoToplineCargo/routes/route.testimonials.php

14 lines
1.1 KiB
PHP
Raw Permalink Normal View History

2024-05-05 04:47:49 +00:00
<?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');
});