This commit is contained in:
Charles 2025-07-17 07:02:26 -04:00
parent bff4098951
commit e9ab7f6976

View File

@ -19,6 +19,8 @@ class ExportEggAction extends Action
$this->label(trans('filament-actions::export.modal.actions.export.label'));
$this->icon('tabler-download');
$this->authorize(fn () => auth()->user()->can('export egg'));
$this->action(fn (EggExporterService $service, Egg $egg) => response()->streamDownload(function () use ($service, $egg) {