自定义密码重置邮件查看在Laravel [英] Customizing password reset mail View in Laravel

查看:139
本文介绍了自定义密码重置邮件查看在Laravel的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何更改laravel中密码重置邮件中出现的内容?
喜欢用他的姓名来解决用户,并显示密码重置链接等。
该电子邮件视图位于哪里?

How can I change what appears in the password reset email in laravel? Like addressing the user with his name and show the password reset link etc. Where is that email view located?

推荐答案

是的,您可以更改位于

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

对于自定义,将User模型的实例传递给此视图,并回显出用户名,如: p>

For customization pass an instance of User model to this view and echo out user name there like:

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

这篇关于自定义密码重置邮件查看在Laravel的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆