1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 05:14:04 +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-06 18:27:18 +02:00

12 lines
No EOL
557 B
Markdown

---
title: 'You can explicitly bind objects to routes. You don''t have to use route model binding only. Custom objects work perfectly well too'
tweet_id: '1308140146374696962'
thread_slug: 1-rt-1-tip
author_username: samuelstancl
images:
- 'https://pbs.twimg.com/media/EidyDmfWsAI14-C.png'
created_at: 2021-04-06T16:07:48+00:00
slug: 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.