thijzie
thijzie
FFilament
Created by thijzie on 2/6/2024 in #❓┊help
Update table filters based on search query?
Hello, I have been trying to update my filters based on the search query that is entered. I tried using the ->afterStateUpdated(function ($state) use ($table) {} on my filters, but it only seems to work for other filters. The search query does not seem to affect the state / call the afterStateUpdated method for the filters. Is there any way to call the the afterStateUpdated on the filters from another part of my code, for example from applySearchToTableQuery ? In case the question is unclear, the goal is to have someone enter a city name ('e.g. Venice'), and updating the country filters so that only applicable options are shown.
3 replies