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