Файловый менеджер - Редактировать - /home/clickysoft/public_html/travel-guru.clickysoft.net/travel-guru/routes/Front/web.php
Назад
<?php use App\Http\Controllers\Front\AnnualDueController; use App\Http\Controllers\Front\CategoryController; use App\Http\Controllers\Front\CountryController; use App\Http\Controllers\Front\DestinationController; use App\Http\Controllers\Front\FeedbackFormController; use App\Http\Controllers\Front\HomepageController; use App\Http\Controllers\Front\LunchProgramController; use App\Http\Controllers\Front\UserController; use Illuminate\Support\Facades\Route; /* |-------------------------------------------------------------------------- | 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! | */ //Site Routes Route::controller(HomepageController::class)->group(function () { Route::get('/', 'index')->name('home'); Route::get('/login', 'login')->name('login'); Route::post('/login', 'loginData')->name('login'); Route::get('/sign-up', 'signUp')->name('sign-up'); Route::post('/sign-up', 'signUpData')->name('sign-up.data'); Route::get('/verify-email/{token}', 'verifyEmail')->name('verify-email'); Route::get('/forgot-password', 'forgotPassword')->name('forgot.password'); Route::post('/forgot-password', 'forgotPasswordData')->name('forgot.password.data'); Route::get('/reset-password/{token}', 'resetPassword')->name('reset.password'); Route::post('/reset-password/{token}', 'resetPasswordData')->name('reset.password.data'); Route::group(['middleware' => 'auth'], function () { Route::controller(HomepageController::class)->group(function () { Route::post('/logout', 'logout')->name('logout'); Route::get('/dashboard', 'profile')->name('profile'); Route::get('/dashboard/orders/hot-lunch', 'hotLunchOrders')->name('orders.hot-lunch'); Route::get('/dashboard/orders/events', 'eventOrders')->name('orders.event'); Route::get('/dashboard/orders/hot-lunch/{orderId}', 'hotLunchOrdersDetails')->name('orders.hot-lunch.details'); }); }); }); Route::controller(CategoryController::class)->group(function () { Route::get('/category/{slug}', 'detail')->name('category.detail'); }); Route::controller(UserController::class)->group(function () { Route::get('/user/show-modal-travel-agent/{id}', 'showModalTravelAgent')->name('show.modal.travel.agent'); }); Route::controller(DestinationController::class)->group(function () { Route::get('/destinations', 'index')->name('destination.index'); Route::get('/destination/{slug}', 'detail')->name('destination.detail'); }); Route::controller(CountryController::class)->group(function () { Route::get('/destination/country/{slug}', 'detail')->name('destination.country.detail'); });
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка