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) { echo $service->handle($egg->id); }, 'egg-' . $egg->getKebabName() . '.json')); } }