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:
parent
54752d5d05
commit
c359f8d68c
1 changed files with 1 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue