user = $user; $this->token = $token; } /** * Get the message envelope. */ public function envelope(): Envelope { return new Envelope( subject: 'Activate Your Account', ); } /** * Get the message content definition. */ public function content(): Content { $frontendUrl = env('MAIL_ACTIVATION_FRONTEND'); $frontendUrl = str_replace('${ACTIVATION_CODE}', $this->token, $frontendUrl); return new Content( view: 'emails.email_activation', with: [ 'user' => $this->user, 'activationLink' => $frontendUrl, ] ); } /** * Get the attachments for the message. * * @return array */ public function attachments(): array { return []; } }