Creating Exporter with custom data
I need to create an Export button as a header action of an EditTeam Resource page. The export is not going to be an Eloquent query result, but instead an array of data fed from an API response. I am hoping to reuse Filaments Exporter functionality but instead of doing an eloquent query, just passing it an array of data for the query. I can't see any way in the docs to do this. Does anyone know if this is possible and if so how?
Thanks!
2 Replies
i made customexportaction so i am not using default filament export thats why i used
League\Csv\Writer
inside my custom export action i made custom query. i did this because in my resource i am using pivot table query. thats why default export action wont work properly.
so i guess you can do whatever you want inside custom export action.
I like to use, and would absolutely recommend, eightynine/filament-excel-import.
It's super easy to use and you can make your own importers while leveraging their UI and process.
@eightynine