jeffersongoncalves/filament-action-export
Table, ResourceTables). This aligns well with Laravel-based admin panels built on Filament, reducing abstraction overhead.spatie/laravel-data-export (for CSV/XLSX) and barryvdh/laravel-dompdf (for PDF). These are well-maintained, but version conflicts may arise if the project uses older Laravel versions.dompdf may struggle with complex layouts (e.g., merged cells, dynamic images) without tweaks.spatie/data-export, dompdf)?dompdf and spatie/data-export dependencies are compatible with the project’s PHP version (8.1+ recommended).composer require jeffersongoncalves/filament-action-export
composer require spatie/laravel-data-export barryvdh/laravel-dompdf
use Jeffersongoncalves\FilamentActionExport\Actions\ExportAction;
ExportAction::make()
->label('Export to CSV')
->filename('report-'.now()->format('Y-m-d'))
->addToTable(MyResourceTable::class);
ExportAction::make()
->columns(['id', 'name' => 'User Name']) // Custom column labels
->format('xlsx')
->addToTable(...);
ExportAction to support non-standard columns/actions.spatie/data-export and dompdf for breaking changes.composer.json to avoid surprises:
"require": {
"spatie/laravel-data-export": "^6.0",
"barryvdh/laravel-dompdf": "^2.0"
}
spatie/data-export docs.dompdf logs or switch to a headless Chrome solution (e.g., wkhtmltopdf) if layouts fail.ExportAction::make()
->queueable() // If supported
->chunkSize(1000)
->addToTable(...);
laravel-queue with database or redis drivers.| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Package incompatibility | Exports break after Filament update | Fork the package or use feature flags. |
| Memory limits (large exports) | Server crashes or timeouts | Implement chunking or queue-based processing. |
| PDF generation errors | Corrupted/blank PDFs | Fallback to CSV/XLSX or debug Dompdf config. |
| Custom table conflicts | Export action fails silently | Extend the action class or validate table structure. |
| Dependency conflicts | Composer install fails | Use platform-check or isolate dependencies. |
spatie/data-export docs and Filament action examples.How can I help you explore Laravel packages today?