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