Adding hasAll or whereHasAll Eloquent methods? #46288
Unanswered
aschmelyun
asked this question in
Ideas
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.
-
Was wondering if there would be any interest in either adding new methods to Eloquent's
QueriesRelationships
trait, or modifying the existing has/whereHas to accept arrays of relationships.Instead of:
It could be condensed to:
No real benefit as far as I know other than a bit cleaner syntax.
Beta Was this translation helpful? Give feedback.
All reactions