3 namespace BookStack\Notifications;
5 use Illuminate\Notifications\Notification;
6 use Illuminate\Notifications\Messages\MailMessage;
8 class ResetPassword extends Notification
11 * The password reset token.
18 * Create a notification instance.
20 * @param string $token
22 public function __construct($token)
24 $this->token = $token;
28 * Get the notification's channels.
30 * @param mixed $notifiable
31 * @return array|string
33 public function via($notifiable)
39 * Build the mail representation of the notification.
41 * @return \Illuminate\Notifications\Messages\MailMessage
43 public function toMail()
45 return (new MailMessage)
46 ->line('You are receiving this email because we received a password reset request for your account.')
47 ->action('Reset Password', baseUrl('password/reset/' . $this->token))
48 ->line('If you did not request a password reset, no further action is required.');