F
Filament2w ago
Hedi

get a table's result programatically

hello, i have a table like this
return $table
->query(Product::query()->where('user_id', Auth::id()))
return $table
->query(Product::query()->where('user_id', Auth::id()))
inside this table (it's inside a custom page) i want to get table's records when a filter is changed, or a search has completed, etc... is that possible to get a callback when the table updates? i think i should explain why i wanna do this, i want to use this with a barcode scanner. when the user searches for a barcode, i want to check when there's only one result, and i add that record to the cart. thank you in advance!
1 Reply
Dennis Koch
Dennis Koch2w ago
I don't have an exact solution/working code, but I think you should be able to add a Livewire updated hook to the ListPage for the filters/search and then run your query.

Did you find this page helpful?