user = $user; $this->guardian = $guardian; $this->relationship = $relationship; } /** * Get the message envelope. * * @return \Illuminate\Mail\Mailables\Envelope */ public function envelope() { return new Envelope( subject: 'Welcome to ' . config('app.name', 'Club SaaS') . ' - ' . $this->user->full_name, ); } /** * Get the message content definition. * * @return \Illuminate\Mail\Mailables\Content */ public function content() { return new Content( view: 'emails.welcome', with: [ 'verificationUrl' => URL::temporarySignedRoute('verification.verify', now()->addMinutes(60), [ 'id' => $this->user->getKey(), 'hash' => sha1($this->user->getEmailForVerification()), ]), ], ); } /** * Get the attachments for the message. * * @return array */ public function attachments() { return []; } }