token = $token; } public function via() { return [TransactionalEmailChannel::class]; } public function toMail(User $user): MailMessage { $url = url('/') . '/reset-password/' . $this->token . '?email=' . $user->email; $mail = new MailMessage(); $mail->subject('Reset Password'); $mail->view('emails.reset-password', [ 'user' => $user, 'url' => $url, ]); return $mail; } }