invitation = $invitation; } /** * Get the message envelope. */ public function envelope(): Envelope { return new Envelope( subject: 'You\'re invited to join '.config('app.name'), ); } /** * Get the message content definition. */ public function content(): Content { return new Content( view: 'emails.invitation', with: [ 'invitation' => $this->invitation, 'invitedBy' => $this->invitation->invitedBy, 'registerUrl' => route('register', ['token' => $this->invitation->token]), 'expiresAt' => $this->invitation->expires_at, 'siteName' => config('app.name'), ], ); } /** * Get the attachments for the message. * * @return array */ public function attachments(): array { return []; } }