filter by relationship created at
How can I filter by relationship created_at column?
My approach, which is not working
11 Replies
Solution
Oh, I can use
whereHas()
..Hi @Leandro Ferreira sorry for tag here, I've change my logic and it's working fine now but do you know why
->native(false)
is not working inside filter->form()hum, I don't know
Sorry, I got typo.. everything is working fine now... haha
Would be nice to see the solution for this, got exactly the same problem.
I've filter like this
What relationship you got set between your models?
I thin i have belongto, i cannot check my code rn.. but any relationship should work
I have a hasMany relationship and I want to filter by its create_at year, but filament doesnt filter out the records that doesnt not match the filter
like so