booking->reference, replyTo: [new Address(config('fewo.owner.email'), config('fewo.owner.name'))], ); } public function content(): Content { return new Content( markdown: 'mail.booking-confirmed', ); } /** * @return list */ public function attachments(): array { $path = app(RentalContract::class)->absolutePath($this->booking); return $path ? [Attachment::fromPath($path)->as("Mietvertrag-{$this->booking->reference}.pdf")->withMime('application/pdf')] : []; } }