Files
2025-08-17 16:23:14 +05:45

41 lines
1.3 KiB
PHP

<?php
use Illuminate\Support\Facades\Route;
use Modules\Testimonial\app\Http\Controllers\TestimonialController;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
Route::group(
[
'prefix' => 'apanel',
'middleware' => ['auth'],
'as' => 'cms.',
],
function () {
Route::group(
[
'prefix' => 'cms',
'as' => 'testimonials.',
'controller' => 'TestimonialController',
],
function () {
Route::get('testimonials', 'index')->name('index');
Route::get('testimonials/create', 'create')->name('create');
Route::post('testimonials/store', 'store')->name('store');
Route::get('testimonials/{uuid}/edit', 'edit')->name('edit');
Route::put('testimonials/{uuid}/update', 'update')->name('update');
Route::delete('testimonials/{uuid}/delete', 'destroy')->name('delete');
}
);
}
);