Pages · Laravilt
ExportAction
Export records to various file formats
Export table records to Excel, CSV using Laravel Excel.
Basic Usage
php
Default Configuration
- Icon: Download
- Color: gray
- Integrates with Laravel Excel (Maatwebsite)
Export as XLSX
php
Export as CSV
php
Custom Exporter Class
php
Specify Columns
php
Modify Query
php
Queue Large Exports
php
API Reference
| Method | Parameters | Description |
|---|---|---|
make() | ?string $name | Create action |
exporter() | string | Exporter class |
fileName() | string | Output filename |
xlsx() | — | Export as XLSX |
csv() | — | Export as CSV |
columns() | array | Columns to export |
headings() | array | Column headings |
modifyQueryUsing() | Closure | Modify query |
queue() | — | Queue export |
disk() | string | Storage disk |