skip to Main Content

Laravel export file with dynamic name

I am running a script that stores the collected data in csv. It's working like that: $responce = Excel::store(new UsersExport($formatted_data), 'fileName.csv', null, MaatwebsiteExcelExcel::CSV); And that's my class: class UsersExport implements FromArray { protected $invoices; public function __construct(array $invoices) { $this->invoices…

VIEW QUESTION
Back To Top
Search