From 23fc82588ea10432f42d6f50826696753eafd5aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dimitri=20K=C3=B6nig?= Date: Tue, 12 Jun 2018 16:14:13 +0200 Subject: [PATCH] Make ResetPassword Notification translateable (#24534) --- src/Illuminate/Auth/Notifications/ResetPassword.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Illuminate/Auth/Notifications/ResetPassword.php b/src/Illuminate/Auth/Notifications/ResetPassword.php index a87983b37a27..c2978fe60f28 100644 --- a/src/Illuminate/Auth/Notifications/ResetPassword.php +++ b/src/Illuminate/Auth/Notifications/ResetPassword.php @@ -2,6 +2,7 @@ namespace Illuminate\Auth\Notifications; +use Illuminate\Support\Facades\Lang; use Illuminate\Notifications\Notification; use Illuminate\Notifications\Messages\MailMessage; @@ -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.')); } /**