Export concerns
| Interface | Explanation | Documentation |
|---|
Maatwebsite\LaravelCsv\Concerns\FromArray | Use an array to populate the export. | From Array |
Maatwebsite\LaravelCsv\Concerns\FromCollection | Use a Laravel Collection to populate the export. | Exporting collections |
Maatwebsite\LaravelCsv\Concerns\FromQuery | Use an Eloquent query to populate the export. | From Query |
Maatwebsite\LaravelCsv\Concerns\WithHeadings | Prepend a heading row. | Adding a heading row |
Maatwebsite\LaravelCsv\Concerns\WithMapping | Format the row before it's written to the file. | Mapping data |
Traits
| Trait | Explanation | Documentation |
|---|
Maatwebsite\LaravelCsv\Concerns\Exportable | Add download/store abilities right on the export class itself. | Exportables |