Skip to content

Commit

Permalink
Make ResetPassword Notification translateable (#24534)
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitri-koenig authored and taylorotwell committed Jun 12, 2018
1 parent 6640dcb commit 23fc825
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/Illuminate/Auth/Notifications/ResetPassword.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Illuminate\Auth\Notifications;

use Illuminate\Support\Facades\Lang;
use Illuminate\Notifications\Notification;
use Illuminate\Notifications\Messages\MailMessage;

Expand Down Expand Up @@ -56,9 +57,10 @@ public function toMail($notifiable)
}

return (new MailMessage)
->line('You are receiving this email because we received a password reset request for your account.')
->action('Reset Password', url(config('app.url').route('password.reset', $this->token, false)))
->line('If you did not request a password reset, no further action is required.');
->subject(Lang::getFromJson('Reset Password Notification'))
->line(Lang::getFromJson('You are receiving this email because we received a password reset request for your account.'))
->action(Lang::getFromJson('Reset Password'), url(config('app.url').route('password.reset', $this->token, false)))
->line(Lang::getFromJson('If you did not request a password reset, no further action is required.'));
}

/**
Expand Down

0 comments on commit 23fc825

Please sign in to comment.