F
Filament16mo ago
toeknee

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
toeknee16mo ago
Code above, assumed it would be applied by default, but even manually setting it's not working at all.
Dan Harrin
Dan Harrin16mo 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
toeknee16mo ago
Ahhh, whereRelation got ya! Thanks a bunch Dan