Reputation: 1499
I'm trying to get an URL with route binding as one statement in routes/web.php
matching the following pattern:
Notably, the first parameter is optional should default to "en". Is it possible to have route binding to load a model from two parameters with one statement instead of two in the routes file?
Upvotes: 0
Views: 283