Export formats

By default the export format is determined by the extension of the file, however if you want to explicitly configured this, you can pass through the export format as 2nd parameter.

XLSX

(new InvoicesExport)->download('invoices.xlsx', \Maatwebsite\Excel\Excel::XLSX);
1

CSV

(new InvoicesExport)->download('invoices.csv', \Maatwebsite\Excel\Excel::CSV);
1

TSV

(new InvoicesExport)->download('invoices.tsv', \Maatwebsite\Excel\Excel::TSV);
1

ODS

(new InvoicesExport)->download('invoices.ods', \Maatwebsite\Excel\Excel::ODS);
1

XLS

(new InvoicesExport)->download('invoices.xls', \Maatwebsite\Excel\Excel::XLS);
1

SLK

(new InvoicesExport)->download('invoices.slk', \Maatwebsite\Excel\Excel::SLK);
1

XML

(new InvoicesExport)->download('invoices.xml', \Maatwebsite\Excel\Excel::XML);
1

GNUMERIC

(new InvoicesExport)->download('invoices.gnumeric', \Maatwebsite\Excel\Excel::GNUMERIC);
1

HTML

(new InvoicesExport)->download('invoices.html', \Maatwebsite\Excel\Excel::HTML);
1

MPDF

(new InvoicesExport)->download('invoices.pdf', \Maatwebsite\Excel\Excel::MPDF);
1

DOMPDF

(new InvoicesExport)->download('invoices.pdf', \Maatwebsite\Excel\Excel::DOMPDF);
1

TCPDF

(new InvoicesExport)->download('invoices.pdf', \Maatwebsite\Excel\Excel::TCPDF);
1