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