data = $data; } /** * Get the message envelope. */ public function envelope(): Envelope { $fromAddress = env('MAIL_FROM_ADDRESS', 'default@example.com'); $fromName = env('MAIL_FROM_NAME', 'Default Name'); return new Envelope( from: new Address($fromAddress, $fromName), subject: 'Welcome Mail - Your account has been created successfully.', ); } /** * Get the message content definition. */ public function content(): Content { return new Content( view: 'mail.welcome', with: [ 'data' => $this->data, ], ); } /** * Get the attachments for the message. * * @return array */ public function attachments(): array { return []; } }