code = $code; } /** * 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 registration has been created successfully.', ); } /** * Get the message content definition. */ public function content(): Content { return new Content( view: 'mail.registration', with: [ 'code' => $this->code, ], ); } /** * Get the attachments for the message. * * @return array */ public function attachments(): array { return []; } }