3 namespace BookStack\Notifications;
5 use Illuminate\Notifications\Messages\MailMessage;
6 use Illuminate\Notifications\Notification;
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 ->subject(trans('auth.email_reset_subject', ['appName' => setting('app-name')]))
47 ->line(trans('auth.email_reset_text'))
48 ->action(trans('auth.reset_password'), baseUrl('password/reset/' . $this->token))
49 ->line(trans('auth.email_reset_not_requested'));