You can supply default values for route parameters
- ·
- Telegram
- ·
- Newsletter
🔥 Did you know that you can supply default values for route parameters in @laravelphp?
In the screenshot below, we use the current user's account as the default value for {account}
. This means we don't have to provide it when generating the users.index
route.