1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-11 21:14:02 +00:00
laravel-tips/content/tips/if-you-want-to-identify-teams-workspaces-etc-by-path-you-dont-have-to-pass-the-team-id-to-every-route.md
2021-04-06 18:27:18 +02:00

642 B

title tweet_id thread_slug author_username images created_at slug
If you want to identify teams, workspaces, etc by path, you don't have to pass the team ID to every route 1308096302530600963 1-rt-1-tip samuelstancl
https://pbs.twimg.com/media/EidKFFnX0AEEjwr.png
https://pbs.twimg.com/media/EidKYlkWoAAWkLD.png
2021-04-06T16:07:43+00:00 if-you-want-to-identify-teams-workspaces-etc-by-path-you-dont-have-to-pass-the-team-id-to-every-route

In the example below, the value reaches the middleware, where you can do some stuff, and then is REMOVED from the route parameters before being passed to the action.