*Pivot() methods are not available in when() when querying a relationship #38729
Unanswered
Imangazaliev
asked this question in
Q&A
Replies: 0 comments
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Description:
There's User model with Role many-to-many relationship:
I want to add a conditinal clause for a pivot column to a relationship query:
But gettig the error:
If comment out
when
I'm getting the following error because nestedorWherePivotNull
:Beta Was this translation helpful? Give feedback.
All reactions