You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would have handy to have an AllowedInclude::exists (using withExists) which is in the same vein as AllowedInclude::count (which presumably uses withCount).
This can be implemented easily enough with AllowedInclude::custom but it seems like a good candidate for being included in the library.
If anyone else needs this functionality, here's how to do it with AllowedInclude::custom.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
It would have handy to have an
AllowedInclude::exists
(usingwithExists
) which is in the same vein asAllowedInclude::count
(which presumably useswithCount
).This can be implemented easily enough with
AllowedInclude::custom
but it seems like a good candidate for being included in the library.If anyone else needs this functionality, here's how to do it with
AllowedInclude::custom
.app/QueryBuilder/ExistsInclude.php:
Then use it like this:
Assuming a relation like this:
Beta Was this translation helpful? Give feedback.
All reactions