*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
-
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