mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-11-24 11:52:34 +01:00
32 lines
924 B
PHP
32 lines
924 B
PHP
<?php namespace BookStack\Notifications;
|
|
|
|
class UserInvite extends MailNotification
|
|
{
|
|
public $token;
|
|
|
|
/**
|
|
* Create a new notification instance.
|
|
* @param string $token
|
|
*/
|
|
public function __construct($token)
|
|
{
|
|
$this->token = $token;
|
|
}
|
|
|
|
/**
|
|
* Get the mail representation of the notification.
|
|
*
|
|
* @param mixed $notifiable
|
|
* @return \Illuminate\Notifications\Messages\MailMessage
|
|
*/
|
|
public function toMail($notifiable)
|
|
{
|
|
$appName = ['appName' => setting('app-name')];
|
|
return $this->newMailMessage()
|
|
->subject(trans('auth.user_invite_email_subject', $appName))
|
|
->greeting(trans('auth.user_invite_email_greeting', $appName))
|
|
->line(trans('auth.user_invite_email_text'))
|
|
->action(trans('auth.user_invite_email_action'), url('/register/invite/' . $this->token));
|
|
}
|
|
}
|