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'),