day = $day; $this->message = $message; $this->zip_file = $zip_file; } /** * Get the message envelope. */ public function envelope(): Envelope { return new Envelope( subject: 'Sofa Score ' . $this->day, ); } /** * Get the message content definition. */ public function content(): Content { return new Content( markdown: 'mail.user.sofascore_data', with: [ 'message' => $this->message, ], ); } /** * Get the attachments for the message. * * @return array */ public function attachments(): array { return [ Attachment::fromPath($this->zip_file) ->as('sofa archive ' . $this->day . '.zip') ->withMime('application/x-zip-compressed') ]; } }