Replies: 1 comment
-
I had a similar idea for this and just put up a PR #47346 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This proposal is to follow the same approach of
$table->id()
and$table->foreignId()
by adding new syntactic sugar methods for:And include their respective foreign methods for each one.
Proposal
Let's say we have three tables,
states
,addresses
andwarehouses
, whereaddresses
table has a foreign key of thestates
table, andwarehouses
has a foreign key of theaddresses
table.Beta Was this translation helpful? Give feedback.
All reactions