anno->label}.pdf"; } public function envelope(): Envelope { return new Envelope(subject: "Modulo S-13 — anno di servizio {$this->anno->label}"); } public function content(): Content { return new Content( text: 'mail.modulo-s13', with: ['data' => now()->format('d/m/Y')], ); } /** @return array */ public function attachments(): array { return [ Attachment::fromData(fn () => $this->pdf, $this->nomeFile())->withMime('application/pdf'), ]; } }