This commit is contained in:
salam committed 2026-10-29 15:46:24 +01:00
1 parent da840dc501
commit b2239596ec
1 file changed
+4 -2
@@ -23,9 +23,11 @@ class ListStatistikoPlayers extends ListRecords
{ {
return [ return [
Action::make('clean_download') Action::make('clean_download')
->label('Direkter Download') ->label('Direkt Download')
->icon('heroicon-o-arrow-down-tray') ->icon('heroicon-o-arrow-down-tray')
->action(function (): StreamedResponse { ->action(function (): StreamedResponse {
set_time_limit(0);
return response()->streamDownload(function () { return response()->streamDownload(function () {
// 1. Output-Stream öffnen // 1. Output-Stream öffnen
$output = fopen('php://output', 'w'); $output = fopen('php://output', 'w');
@@ -112,7 +114,7 @@ class ListStatistikoPlayers extends ListRecords
}, 'player-history_all_'.now()->format('Y-m-d_H-i-s').'.csv'); }, 'player-history_all_'.now()->format('Y-m-d_H-i-s').'.csv');
}), }),
ExportAction::make('download_players') ExportAction::make('download_players')
->label('Download') ->label('Export Download')
->icon('phosphor-download') ->icon('phosphor-download')
->columnMapping(false) ->columnMapping(false)
->chunkSize(250) ->chunkSize(250)