Files
wticreatorstudio/Modules/ContactRequest/Routes/web.php
T
2024-02-12 22:54:20 -05:00

22 lines
956 B
PHP

<?php
/*
|--------------------------------------------------------------------------
| 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!
|
*/
use Illuminate\Support\Facades\Route;
Route::middleware(['auth','admin'])->prefix('contactrequest')->as('contactrequest.')->group(function() {
Route::get('/contact', 'ContactController@index')->name('contact.index')->middleware('permission');
Route::get('/contact-get-data', 'ContactController@getData')->name('contact.get-data');
Route::get('/contact/{id}', 'ContactController@show')->name('contact.show');
Route::post('/contact/delete', 'ContactController@destroy')->name('contact.delete')->middleware(['permission','prohibited_demo_mode']);
});