laravel - Laravel 6.x Password reset with different name email column
问题描述
i can not use laravel password resets , laravel search the column name 'email' but in my database it named 'utilisateur_Email' that why i got this error from laravel ' Column not found: 1054 Unknown column 'email' in 'where clause' , how i can customizer my comumn email name in laravel for password reset ? Laravel 6.x Thanks!
解决方案
在里面LoginController
创建一个函数来定义用户名
public function username(){
return 'utilisateur_Email';
}
推荐阅读
- python - 如何从列表中更改图形标题的输出?
- java - NoSuchElementException:找不到行。?
- python - 播放器比相机蟒更快
- azure-storage - 通过连接字符串访问 Azure Blob 存储时身份验证失败
- swift - AVAudioSession DefaultToSpeaker 仍在播放来自接收器的音频
- javascript - 当未定义二维数组单元时,循环不会停止(javascript)
- python - 向不和谐命令添加可选参数
- javascript - 如何在 discord.js 中将表情符号插入昵称?
- c - 尝试创建垂直图/直方图时我的二维数组出现问题
- input - 选择非分隔输入文件的列