2026-03-16 12:36:44 +01:00
|
|
|
<?php
|
|
|
|
|
|
2026-07-07 15:57:45 +02:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
2026-07-08 14:55:18 +02:00
|
|
|
use App\Http\Controllers\Front\ProductController;
|
2026-07-08 18:16:46 +02:00
|
|
|
use App\Http\Controllers\Front\RecipeController;
|
2026-03-16 12:36:44 +01:00
|
|
|
use Illuminate\Support\Facades\Route;
|
2026-04-02 17:29:11 +02:00
|
|
|
use Inertia\Inertia;
|
2026-03-16 12:36:44 +01:00
|
|
|
|
2026-04-08 13:59:30 +02:00
|
|
|
Route::get('/nos-engagements', function () {
|
2026-04-02 17:29:11 +02:00
|
|
|
return Inertia::render('front/Pages/Commitment');
|
|
|
|
|
})->name('engage');
|
|
|
|
|
|
2026-04-08 13:59:30 +02:00
|
|
|
Route::get('/nos-engagements/fabrique-en-france', function () {
|
2026-04-02 17:29:11 +02:00
|
|
|
return Inertia::render('front/Pages/MadeInFrance');
|
|
|
|
|
})->name('made-in-france');
|
|
|
|
|
|
2026-10-28 12:27:19 +01:00
|
|
|
Route::get('/nos-engagements/exhausteur-de-papilles', function () {
|
2026-04-02 17:29:11 +02:00
|
|
|
return Inertia::render('front/Pages/Expertise');
|
|
|
|
|
})->name('expertise');
|
|
|
|
|
|
2026-11-02 11:33:39 +01:00
|
|
|
Route::get('/nos-engagements/large-gamme-100-alternative', function () {
|
2026-04-02 17:29:11 +02:00
|
|
|
return Inertia::render('front/Pages/Gamme');
|
|
|
|
|
})->name('gamme');
|
|
|
|
|
|
2026-04-08 13:59:30 +02:00
|
|
|
Route::get('/nous-contacter', function () {
|
2026-04-02 17:29:11 +02:00
|
|
|
return Inertia::render('front/Pages/Contact/ContactUs');
|
|
|
|
|
})->name('contact-us');
|
|
|
|
|
|
2026-04-15 09:31:43 +02:00
|
|
|
Route::get('/rechercher', function () {
|
|
|
|
|
return Inertia::render('front/Pages/Search');
|
|
|
|
|
})->name('search');
|
|
|
|
|
|
2026-07-08 14:55:18 +02:00
|
|
|
Route::name('products.')->prefix('produits')->group(function () {
|
|
|
|
|
Route::get('/', [ProductController::class, 'index'])->name('index');
|
2026-11-05 16:49:42 +01:00
|
|
|
Route::get('/{frontProduct}', [ProductController::class, 'show'])->name('show');
|
2026-07-08 14:55:18 +02:00
|
|
|
});
|
|
|
|
|
|
2026-07-08 18:16:46 +02:00
|
|
|
Route::name('recipes.')->prefix('recettes')->group(function () {
|
|
|
|
|
Route::get('/', [RecipeController::class, 'index'])->name('index');
|
2026-11-05 16:49:42 +01:00
|
|
|
Route::get('/{frontRecipe}', [RecipeController::class, 'show'])->name('show');
|
2026-07-08 18:16:46 +02:00
|
|
|
});
|
|
|
|
|
|
2026-07-08 14:55:18 +02:00
|
|
|
if (! app()->isProduction()) {
|
2026-09-01 12:12:38 +02:00
|
|
|
Route::get('/demo', function () {
|
2026-07-07 15:58:41 +02:00
|
|
|
return Inertia::render('front/Pages/Demo');
|
2026-09-01 12:12:38 +02:00
|
|
|
})->name('demo');
|
|
|
|
|
}
|