Gryfon
Using Sushi with Filament Table and refresh the data
Hello everyone!
I'm trying to make a LogViewer in a page via a modal. To do this, I was thinking of using Sushi to transform the log rows into an Eloquent array so that I could use the Filament tables.
So I made a Model and a Livewire component with a Table.
In the Table, I do a
Log::query()
and everything works fine.
Where I'm stuck is that I'd like to add a select that will fetch the logs available in the storage/logs folder. When the user selects a file, I'd like to send this file to the Model so that it can redo the Eloquent array for me before refreshing the table. The problem is that I don't really know how to do it, or even if it's possible.
I've tried passing the log file to my Select's afterStateUpdated
method and calling the Model's getRows method, but it doesn't seem to work. I guess I miss something 👀8 replies