Filament page filter

I have this code where I have tried to pass date filter in my filament page. I made one similar type of report few months ago which works with this similar approad but this one is not working. Even when I pass the date filter the data is not changing in the view but the date is passing through.

https://gist.github.com/Namrata199/b913be06177c0b1317d334180e3826ce
Gist
Filament Page Data not changing. GitHub Gist: instantly share code, notes, and snippets.
Solution
https://filamentphp.com/docs/3.x/tables/adding-a-table-to-a-livewire-component#adding-the-table

public function table(Table $table): Table
{
    return $table
        ->query(Product::query())
        ->modifyQueryUsing(fn () => $this->apiData)
        ...;
}
Was this page helpful?