How to call export action from a console command or mailable?

Hey guys, we need to send monthly xls reports via email, can anyone suggest how to call an export command within a script?
2 Replies
Faridleo
Faridleo4mo ago
You can do it with other package, for example: rap2hpoutre/fast-excel or aatwebsite/excel
acroninja
acroninja2mo ago
I have used these packages but it means a duplication of code for defining columns. Would be great to be able to trigger the exporter class with a model and query.
Want results from more Discord servers?
Add your server