]> BookStack Code Mirror - bookstack/blob - app/Notifications/ResetPassword.php
Added 'uk' locale
[bookstack] / app / Notifications / ResetPassword.php
1 <?php namespace BookStack\Notifications;
2
3
4 class ResetPassword extends MailNotification
5 {
6     /**
7      * The password reset token.
8      *
9      * @var string
10      */
11     public $token;
12
13     /**
14      * Create a notification instance.
15      *
16      * @param  string  $token
17      */
18     public function __construct($token)
19     {
20         $this->token = $token;
21     }
22
23     /**
24      * Build the mail representation of the notification.
25      *
26      * @return \Illuminate\Notifications\Messages\MailMessage
27      */
28     public function toMail()
29     {
30             return $this->newMailMessage()
31             ->subject(trans('auth.email_reset_subject', ['appName' => setting('app-name')]))
32             ->line(trans('auth.email_reset_text'))
33             ->action(trans('auth.reset_password'), baseUrl('password/reset/' . $this->token))
34             ->line(trans('auth.email_reset_not_requested'));
35     }
36 }