Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
51 | public function toMail(User $user): MailMessage |
||
52 | { |
||
53 | $query = http_build_query([ |
||
54 | 'email' => $user->getEmailForPasswordReset(), |
||
55 | ]); |
||
56 | |||
57 | $url = front_url('password/reset/' . $this->token . '?' . $query); |
||
58 | |||
59 | return (new MailMessage()) |
||
60 | ->subject(Lang::getFromJson('Reset Password Notification')) |
||
61 | ->line(Lang::getFromJson('You are receiving this email because we received a password reset request for your account.')) |
||
62 | ->action(Lang::getFromJson('Reset Password'), $url) |
||
63 | ->line(Lang::getFromJson('This password reset link will expire in :count minutes.', ['count' => config('auth.passwords.user-invitations.expire')])) |
||
64 | ->line(Lang::getFromJson('If you did not request a password reset, no further action is required.')); |
||
65 | } |
||
67 |