FleetCart/Modules/Review/Routes/admin.php
2023-12-03 14:07:47 +00:00

34 lines
874 B
PHP

<?php
use Illuminate\Support\Facades\Route;
Route::get('reviews', [
'as' => 'admin.reviews.index',
'uses' => 'ReviewController@index',
'middleware' => 'can:admin.reviews.index',
]);
Route::get('reviews/{id}/edit', [
'as' => 'admin.reviews.edit',
'uses' => 'ReviewController@edit',
'middleware' => 'can:admin.reviews.edit',
]);
Route::put('reviews/{id}', [
'as' => 'admin.reviews.update',
'uses' => 'ReviewController@update',
'middleware' => 'can:admin.reviews.edit',
]);
Route::delete('reviews/{ids?}', [
'as' => 'admin.reviews.destroy',
'uses' => 'ReviewController@destroy',
'middleware' => 'can:admin.reviews.destroy',
]);
Route::get('reviews/index/table', [
'as' => 'admin.reviews.table',
'uses' => 'ReviewController@table',
'middleware' => 'can:admin.reviews.index',
]);