© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•13mo ago•
2 replies
ocram82

ExportBulkAction don't work with selected record

I've a selection of records in a relationmanager like in the pic.

But the export bulk action fails all row but the ultimate selected. This is the function:


ExportBulkAction::make('csv_export')
                        ->label('Export .csv')
                        ->exporter(UserExporter::class)
                        ->formats([
                            ExportFormat::Csv,
                        ])
                        ->fileDisk('local')
                        ->icon('heroicon-o-document-text')
                        ->color('primary')
                        ->before(function (ModelsResource $resource) {
                            $resource->deleteOldExports();
                        })
                        ->deselectRecordsAfterCompletion()
                        ->icon('heroicon-o-arrow-down-tray'),
ExportBulkAction::make('csv_export')
                        ->label('Export .csv')
                        ->exporter(UserExporter::class)
                        ->formats([
                            ExportFormat::Csv,
                        ])
                        ->fileDisk('local')
                        ->icon('heroicon-o-document-text')
                        ->color('primary')
                        ->before(function (ModelsResource $resource) {
                            $resource->deleteOldExports();
                        })
                        ->deselectRecordsAfterCompletion()
                        ->icon('heroicon-o-arrow-down-tray'),


i'm stucked...any suggestions? Thanks a lot
Schermata_2025-02-04_alle_15.57.04.png
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

ExportBulkAction doesn't work
FilamentFFilament / ❓┊help
2y ago
ExportBulkAction
FilamentFFilament / ❓┊help
17mo ago
Hide Action when record selected
FilamentFFilament / ❓┊help
3y ago
renderHook scopes don't work
FilamentFFilament / ❓┊help
3y ago