name = $name; $this->email = $email; $this->userSubject = $subject; $this->messageContent = $message; $this->phone = $phone; } /** * Get the message envelope. */ public function envelope(): Envelope { return new Envelope( subject: 'Wiadomość z formularza kontaktowego', replyTo: $this->email, ); } /** * Get the message content definition. */ public function content(): Content { return new Content( view: 'emails.contact-form', with: [ 'name' => $this->name, 'email' => $this->email, 'subject' => $this->userSubject, 'messageContent' => $this->messageContent, 'phone' => $this->phone, ], ); } /** * Get the attachments for the message. * * @return array */ public function attachments(): array { return []; } }