trigger multiple downloads from a header Action button

I know I can't have 2 ->action() calls ... but how would I return 2 different Responsable results to fire two separate downloads from clicking the Action button?

    Actions\Action::make('export')
        ->visible(auth()->user()->can('export submissions'))
        ->color('secondary')
        ->icon('heroicon-s-arrow-down-tray')
        ->action(fn () => (new SubmissionsExport)->download('submissions-export-' . date('Y-m-d-i-h-s') . '.xlsx'))
        ->action(fn () => (new SubmissionsMediaExport)->download('submissions-media-export-' . date('Y-m-d-i-h-s') . '.zip'))
        ->successNotificationTitle('Exported. Check your Downloads directory.')
        ->label('Export Submissions'),


Calling either of these ->action() calls works fine independently, but how can I combine them into one?
Was this page helpful?