/** * Send the password reminder e-mail. * * @param \Illuminate\Contracts\Auth\CanResetPassword $user * @param string $token * @param \Closure|null $callback * * @return \Orchestra\Contracts\Notification\Receipt */ public function emailResetLink(RemindableContract $user, $token, Closure $callback = null) { // We will use the reminder view that was given to the broker to display the // password reminder e-mail. We'll pass a "token" variable into the views // so that it may be displayed for an user to click for password reset. $data = ['user' => $user instanceof Arrayable ? $user->toArray() : $user, 'token' => $token]; $message = Message::create($this->emailView, $data); return $this->mailer->send($user, $message, $callback); }