Skip to content
You're reading the docs for Laravel Excel CSV 1.0. The current version is Laravel Excel 4.x (upgrade guide).

Export concerns ​

InterfaceExplanationDocumentation
Maatwebsite\LaravelCsv\Concerns\FromArrayUse an array to populate the export.From Array
Maatwebsite\LaravelCsv\Concerns\FromCollectionUse a Laravel Collection to populate the export.Exporting collections
Maatwebsite\LaravelCsv\Concerns\FromQueryUse an Eloquent query to populate the export.From Query
Maatwebsite\LaravelCsv\Concerns\WithHeadingsPrepend a heading row.Adding a heading row
Maatwebsite\LaravelCsv\Concerns\WithMappingFormat the row before it's written to the file.Mapping data

Traits ​

TraitExplanationDocumentation
Maatwebsite\LaravelCsv\Concerns\ExportableAdd download/store abilities right on the export class itself.Exportables