1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 13:24:03 +00:00
laravel-tips/content/tips/you-can-explicitly-bind-objects-to-routes-you-dont-have-to-use-route-model-binding-only-custom-objects-work-perfectly-well-too.md
2021-04-07 20:16:47 +02:00

557 B

title tweet_id thread_slug author_username images created_at slug
You can explicitly bind objects to routes. You don't have to use route model binding only. Custom objects work perfectly well too 1308140146374696962 1-rt-1-tip samuelstancl
https://pbs.twimg.com/media/EidyDmfWsAI14-C.png
2020-09-21T20:24:49+00:00 you-can-explicitly-bind-objects-to-routes-you-dont-have-to-use-route-model-binding-only-custom-objects-work-perfectly-well-too

This example is from Tenancy v2 when we had an ActiveRecord-style custom Tenant object.