emailSubject, ); } public function content(): Content { return new Content( view: 'emails.report-sent', ); } /** * @return array */ public function attachments(): array { $filename = 'rapport-dons-'.preg_replace('/[^a-z0-9-]/i', '-', $this->participation->last_name ?? 'participant').'-'.$this->participation->id.'.pdf'; return [ Attachment::fromData(fn () => $this->pdfContent, $filename) ->withMime('application/pdf'), ]; } }