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 seems that currently this package doesn't allow for filters to add a HAVING constraint instead of WHERE other than using a callback. (Correct me if I'm wrong.) Would it be useful to add this functionality to the package or is it too niche? I'm thinking something like this:
AllowedFilter::partial('my_selected_column')->useHaving(),
// or perhaps
AllowedFilter::havingPartial('my_selected_column'),
// equivalent to: $query->having('my_selected_column', 'like', "%{$value}%"),
I haven't looked into how difficult this would be to implement, just throwing it out there as I currently have the need for it in one of my queries and was surprised it didn't already exist. Thoughts?
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
Uh oh!
There was an error while loading. Please reload this page.
-
It seems that currently this package doesn't allow for filters to add a HAVING constraint instead of WHERE other than using a callback. (Correct me if I'm wrong.) Would it be useful to add this functionality to the package or is it too niche? I'm thinking something like this:
I haven't looked into how difficult this would be to implement, just throwing it out there as I currently have the need for it in one of my queries and was surprised it didn't already exist. Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions