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