Tags: fabricecw/Laravel-Excel
Tags
Ensure that opis always has the same security provider (SpartnerNL#2257) * Ensure that opis always has the same security provider (SpartnerNL#2251)
Make download headers customizable (SpartnerNL#2162) Before, CSV downloads would be sent with a mime type of 'text/plain'. This made Firefox propose to open the file with a text editor instead of LibreOffice / Excel. The workaround without this fix would be a bit longwinded: ```php $response = Excel::download( new MyExport($data), "{$filename}.csv", \Maatwebsite\Excel\Excel::CSV ); // send the correct mime type $response->headers->set('Content-Type', 'text/csv'); return $response; ``` With this fix: ```php return Excel::download( new MyExport($data), "{$filename}.csv", \Maatwebsite\Excel\Excel::CSV, ['Content-Type' => 'text/csv'] ); ``` Doesn't break the API. Doesn't change behavior. Custom headers are optional.
Serialized quey eager loads (SpartnerNL#2013) * Add failing test for serializing query with eager loads * Support queuing FromQuery with eager loads (SpartnerNL#1982) * Apply fixes from StyleCI [ci skip] [skip ci] * Add test coverage for serializing non-eloquent queries * Apply fixes from StyleCI [ci skip] [skip ci]
PreviousNext