3 namespace BookStack\Notifications;
5 class ResetPassword extends MailNotification
8 * The password reset token.
15 * Create a notification instance.
17 * @param string $token
19 public function __construct($token)
21 $this->token = $token;
25 * Build the mail representation of the notification.
27 * @return \Illuminate\Notifications\Messages\MailMessage
29 public function toMail()
31 return $this->newMailMessage()
32 ->subject(trans('auth.email_reset_subject', ['appName' => setting('app-name')]))
33 ->line(trans('auth.email_reset_text'))
34 ->action(trans('auth.reset_password'), url('password/reset/' . $this->token))
35 ->line(trans('auth.email_reset_not_requested'));