1 <?php namespace BookStack\Notifications;
4 class ResetPassword extends MailNotification
7 * The password reset token.
14 * Create a notification instance.
16 * @param string $token
18 public function __construct($token)
20 $this->token = $token;
24 * Build the mail representation of the notification.
26 * @return \Illuminate\Notifications\Messages\MailMessage
28 public function toMail()
30 return $this->newMailMessage()
31 ->subject(trans('auth.email_reset_subject', ['appName' => setting('app-name')]))
32 ->line(trans('auth.email_reset_text'))
33 ->action(trans('auth.reset_password'), baseUrl('password/reset/' . $this->token))
34 ->line(trans('auth.email_reset_not_requested'));