From 68cc0d1581bad2241f97ff75fe46a7e8a08aeb8c Mon Sep 17 00:00:00 2001 From: Corentin Huet Date: Mon, 3 Nov 2025 12:56:56 +0100 Subject: [PATCH] fix: product texts could not be bolded --- routes/web-bo.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/routes/web-bo.php b/routes/web-bo.php index 134734d..6b7a486 100644 --- a/routes/web-bo.php +++ b/routes/web-bo.php @@ -37,7 +37,10 @@ Route::prefix('bo')->name('bo.')->middleware(['admin-secure', 'throttle:credenti ->name('ranges.change-published'); // * PRODUCTS - Route::resource('products', ProductController::class)->except(['show']); + Route::resource('products', ProductController::class) + ->except(['show']) + ->withoutMiddleware('htmlsanitize') + ->middleware('htmlsanitize:description,preparation,ingredients'); Route::post('/products/{product}/change-published', [ProductController::class, 'changePublished']) ->name('products.change-published');