FilamentF
Filament11mo ago
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'),


i'm stucked...any suggestions? Thanks a lot
Schermata_2025-02-04_alle_15.57.04.png
Was this page helpful?