whereRelationIn #46224
Unanswered
irakliShengelia
asked this question in
Ideas
whereRelationIn
#46224
Replies: 2 comments
-
you can pass the column as closure and can resolve your issue/problem |
Beta Was this translation helpful? Give feedback.
0 replies
-
many times I needed something like this, much cleaner than using a closure |
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.
-
Lately I've come to find that in our app we often query for a relationship column being in a set of values. I think it would be useful (and prettier than whereHas/whereRelation with callback) to have a whereRelationIn method, something along the lines of the below:
I'm committed [alongside my colleagues] to writing the necessary code, if the idea gets traction.
What do you guys think?
I also saw this thread which ended with 'whereRelation' suggestion, so I think there are devs who could benefit with this functionality
Beta Was this translation helpful? Give feedback.
All reactions