generated from boboko/starter
39 lines
1.3 KiB
PHP
39 lines
1.3 KiB
PHP
<?php
|
|
|
|
use App\Http\Controllers\CategoryController;
|
|
use App\Http\Controllers\ContactController;
|
|
use App\Http\Controllers\HomeController;
|
|
use App\Http\Controllers\LegalPageController;
|
|
use App\Http\Controllers\ProductController;
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
Route::prefix('{locale}')
|
|
->middleware('locale')
|
|
->group(function () {
|
|
Route::get('/', [HomeController::class, 'index'])->name('home');
|
|
|
|
Route::get('/products/{id}', [ProductController::class, 'show'])->name(
|
|
'product.show',
|
|
);
|
|
|
|
Route::get('/category/{collection}', [CategoryController::class, 'show'])->name(
|
|
'category.show',
|
|
);
|
|
|
|
Route::get('/contact', [ContactController::class, 'index'])->name('contact');
|
|
|
|
Route::get('/terms-and-conditions', [LegalPageController::class, 'terms'])->name(
|
|
'legal.terms',
|
|
);
|
|
Route::get('/shipping-returns', [LegalPageController::class, 'shippingReturns'])->name(
|
|
'legal.shipping-returns',
|
|
);
|
|
Route::get('/privacy-policy', [LegalPageController::class, 'privacy'])->name(
|
|
'legal.privacy',
|
|
);
|
|
Route::get('/cookies-policy', [LegalPageController::class, 'cookies'])->name(
|
|
'legal.cookies',
|
|
);
|
|
|
|
});
|