qammar feroz February 2016

Laravel 5.1 user name in forget password email template

I am using Laravel 5.1 with out of the box authentication.

In the 'password reset email', sent to the user, I want to add username, so that the user receives the email personalized with his/her name.

Any guidance on how to do this is appreciated.

Answers


HappyCoding February 2016

Referecing this SO post: Customizing password reset mail View in Laravel

Yes you can change the email template, which is located at:

resources/views/emails/password.blade.php

For customization, pass an instance of User model to this view and echo out username per the following:

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

Post Status

Asked in February 2016
Viewed 2,195 times
Voted 11
Answered 1 times

Search




Leave an answer