Eager loading many-to-many relationships fails on model2 and succeed on model1 #47627
Unanswered
saberhosneydev
asked this question in
Q&A
Replies: 1 comment 1 reply
-
I think it the first works because you have agent_badge, but the second does not because you don't have badge_agent. You should add the table name. |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
I made a many-to-many relationship between
Agent
andBadge
models, tried to access the relation with the following codeand finally the migration
Beta Was this translation helpful? Give feedback.
All reactions