shayd-r / filament-smart-export
Smart automatic export action for Filament that discovers models and relationships automatically
Installs: 27
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/shayd-r/filament-smart-export
Requires
- php: ^8.1|^8.2|^8.3
- filament/filament: ^4.0
- filament/forms: ^4.0
- filament/notifications: ^4.0
- filament/tables: ^4.0
- illuminate/support: ^11.0|^12.0
- openspout/openspout: ^4.0
Requires (Dev)
- orchestra/testbench: ^8.0|^9.0
- pestphp/pest: ^2.0
- pestphp/pest-plugin-laravel: ^2.0
- phpunit/phpunit: ^10.0
- spatie/laravel-package-tools: ^1.16
README
Automatic export action for Filament v4 that discovers your model structure and relationships.
Features
- Auto-discovers models, columns, and relationships
- Export to XLSX or CSV
- Live preview of data
- Multiple relationship support (HasMany, BelongsToMany)
- Direct download (no storage needed)
Installation
composer require shayd-r/filament-smart-export
Usage
Bulk Action (for selected records)
use ShaydR\FilamentSmartExport\Actions\SmartExportBulkAction; public static function table(Table $table): Table { return $table ->bulkActions([ SmartExportBulkAction::make(), ]); }
Header Action (for all records)
use ShaydR\FilamentSmartExport\Actions\SmartExportHeaderAction; public static function table(Table $table): Table { return $table ->headerActions([ SmartExportHeaderAction::make(), ]); }
Version Compatibility
- Filament v4: Use version
^2.0(main branch) - Filament v3: Use version
^1.0(filament-v3 branch)
Requirements
- PHP 8.1+
- Laravel 11+ / 12+
- Filament 4.0+
License
MIT