parfum/routes/pages/home.php

32 lines
1.0 KiB
PHP

<?php
use App\Livewire\Home\Article\Index as ArticleIndex;
use App\Livewire\Home\Cart\Index as CartComponent;
use App\Livewire\Home\Faq\Index as FaqComponent;
use App\Livewire\Home\Index as HomeComponent;
use App\Livewire\Home\Outlet as OutletComponent;
use App\Livewire\Home\Product\Index as ProductIndex;
use App\Livewire\Home\Voucher as VoucherComponent;
use Illuminate\Support\Facades\Route;
Route::get('/', HomeComponent::class)->name('homepage');
Route::get('/outlets', OutletComponent::class)->name('outlet');
Route::get('/products', ProductIndex::class)->name('product.index');
Route::get('/vouchers', VoucherComponent::class)->name('voucher');
Route::prefix('articles')
->name('article.')
->group(function () {
Route::get('{slug?}', ArticleIndex::class)
->name('index');
});
Route::get('/faq', FaqComponent::class)->name('faq');
Route::get('/cart', CartComponent::class)->name('cart');
Route::get('/profile/redirect', \App\Http\Controllers\ProfileRedirectController::class)->name('profile.redirect');