Files
3dealer/routes/web.php
T

39 lines
1.3 KiB
PHP
Raw Normal View History

2026-07-03 13:46:54 +00:00
<?php
2026-08-26 13:43:30 +03:00
use App\Http\Controllers\CategoryController;
use App\Http\Controllers\ContactController;
use App\Http\Controllers\HomeController;
2026-08-26 13:43:30 +03:00
use App\Http\Controllers\LegalPageController;
2026-07-31 17:41:55 +03:00
use App\Http\Controllers\ProductController;
2026-07-03 13:46:54 +00:00
use Illuminate\Support\Facades\Route;
2026-07-31 17:41:55 +03:00
Route::prefix('{locale}')
2026-08-26 19:12:13 +03:00
->middleware('locale')
->group(function () {
Route::get('/', [HomeController::class, 'index'])->name('home');
Route::get('/products/{product}', [ProductController::class, 'show'])->name(
'product.show',
);
2026-08-26 13:43:30 +03:00
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',
);
});