Skip to content

Load() and with() functions act inconsistent when using relationships inside relationships #33503

Discussion options

You must be logged in to vote

We had a discussion about this behavior recently: #33266

I think the core problem is still the same/similar as described above though

The underlying cause is actually different.

This work around is specific to the auth()->user() though and would not work for normal models

What do you mean by "normal models"?

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@TylerGauntlett
Comment options

Answer selected by TylerGauntlett
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #33503 on July 12, 2020 15:22.