Hi,
I try to filter and to show events with a date in the future in relation to the actual date.
Here in this forum I found several solutions like:
->filter(function ($child) { return $child->date()->toDate() >= time(); })
But I’m not sure to use the actual ‘state of the art’ approach supported by Kirby, because I have seen functions like ‘filterBy’.
What is the actual approach to consider such kind of filter aspects like explained above?