fileName ), ); } /** * Get the attachments for the message. * * @return array */ public function attachments(): array { return [ Attachment::fromData(fn () => $this->csvContent, $this->fileName) ->withMime('text/csv'), ]; } }