Relationship Date Filters?

Dan/Team I've look at the docs and struggling, might be too early for me. Filters work extremely well in general, but I can't see a way to apply a relationship date filter. I need to return all results prior to a date based on a date selected. Assumed I could use filter with Form and ->default() But it's not applying
3 Replies
toeknee
toekneeOP2y ago
Code above, assumed it would be applied by default, but even manually setting it's not working at all.
Dan Harrin
Dan Harrin2y ago
youd need whereRelation() or whereHas() in your query which will allow you to query the related table dot syntax doesnt work in sql column names
toeknee
toekneeOP2y ago
Ahhh, whereRelation got ya! Thanks a bunch Dan
Want results from more Discord servers?
Add your server