Populate a table Filter from another actions form TextInput
I have a filament resource running off a local eloquent model, which is populated via an observer driven ETL job which populates the local model through an eloquent model on a remote database (remote model is called AmicusContact). I've create an empty state action which opens a search form that queries the remote model, and the observer and the ETL job is working correctly and populating the local table from this search action. However I then need it to populate the text of the Filter on the table with exactly the same text entered as the query on the empty state action so the table displays records filtered from the local model. Code is
https://gist.github.com/ObadiahFrey/087b3ca4ddcee1d5ecff7eee480aeed8
0 Replies