mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 21:34:03 +00:00
594 B
594 B
| title | tweet_id | thread_slug | author_username | images | created_at | slug | |
|---|---|---|---|---|---|---|---|
| You can supply default values for route parameters | 1479467942039285762 | weekly-thread-2022-01 | ryangjchandler |
|
2022-01-07T15:00:19+00:00 | you-can-supply-default-values-for-route-parameters |
🔥 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.