feat(routes): add product model binding in RouteServiceProvider

This change allows the product model to be resolved in route parameters.
This commit is contained in:
Jérémy Munsch 2026-06-25 16:54:19 +02:00
parent 54752d5d05
commit c359f8d68c
No known key found for this signature in database
GPG key ID: 2AAECDA6B7330F91

View file

@ -94,6 +94,7 @@ class RouteServiceProvider extends ServiceProvider
Route::model('slide', Slide::class);
Route::model('range', Range::class);
Route::model('discount', Discount::class);
Route::model('product', Product::class);
Route::bind(
'productWithPricingPublished',
fn (string $value) => $this->resolvePublishedProductWithPricing($value)