Password setting reset mail View in Laravel

How can I change what is displayed in the reset email password in laravel? As an appeal to the user with his name and showing the password reset, etc. Where is this email address located?

+4
source share
2 answers

Yes, you can change the email template, which is located in

 resources/views/emails/password.blade.php.

To configure, pass an instance of the user model into this view and highlight the username, for example:

Hello, {{$user->username}}
//And Body of Reset link goes here

Update for laravel 5.3 +

In updated versions of laravel, the code structure is updated. Password reset mail is now located at the provider /laravel/framework/src/Illuminate/Auth/Notifications/ResetPassword.php

and the corresponding template is located at: resources / opinion / supplier / notification / email.blade.php

, , :

  • .
  • , .
  • User
  • .
+2

Laravel 5.3 reset, .

, vendor/laravel/framework/src/Illuminate/Auth/Notifications/ResetPassword.php - (, //ResetPassword.php), . ( ResetPassword.php, !)

sendPasswordResetNotification User ResetPassword:

use App\Notifications\ResetPassword;

...

public function sendPasswordResetNotification($token) {
    $this->notify(new ResetPassword($token));
}

( ), :

php artisan vendor:publish

// /views/vendor/notification/email.blade.php - , .

, , Laravel 5.3

+4

All Articles