3 namespace BookStack\Notifications;
5 class ConfirmEmail extends MailNotification
10 * Create a new notification instance.
12 * @param string $token
14 public function __construct($token)
16 $this->token = $token;
20 * Get the mail representation of the notification.
22 * @param mixed $notifiable
24 * @return \Illuminate\Notifications\Messages\MailMessage
26 public function toMail($notifiable)
28 $appName = ['appName' => setting('app-name')];
30 return $this->newMailMessage()
31 ->subject(trans('auth.email_confirm_subject', $appName))
32 ->greeting(trans('auth.email_confirm_greeting', $appName))
33 ->line(trans('auth.email_confirm_text'))
34 ->action(trans('auth.email_confirm_action'), url('/register/confirm/' . $this->token));