Problem applying filters with HasFiltersAction on a custom Filament Page with Widgets
I created a custom Page called SaleReport in FilamentPHP, and inside the Pages/Widgets directory, I created several custom widgets (charts and tables) that the page uses.
I’m trying to apply date filters (start and end dates) across all the widgets by using the HasFiltersAction trait.
However, the filters (startDate and endDate) are always coming as null inside the widgets, even though I’m setting them through a FilterAction on the Page.
The problem is that when I try to apply filters (for example, selecting a start and end date), the data is not updated. The filter variables (startDate, endDate) are coming as null.😅
Here’s part of my SaleReport Page code:


0 Replies