1 <?php namespace BookStack\Notifications;
3 class ConfirmEmail extends MailNotification
8 * Create a new notification instance.
11 public function __construct($token)
13 $this->token = $token;
17 * Get the mail representation of the notification.
19 * @param mixed $notifiable
20 * @return \Illuminate\Notifications\Messages\MailMessage
22 public function toMail($notifiable)
24 $appName = ['appName' => setting('app-name')];
25 return $this->newMailMessage()
26 ->subject(trans('auth.email_confirm_subject', $appName))
27 ->greeting(trans('auth.email_confirm_greeting', $appName))
28 ->line(trans('auth.email_confirm_text'))
29 ->action(trans('auth.email_confirm_action'), baseUrl('/register/confirm/' . $this->token));