首页 文章

laravel 5.6中的自定义字段默认使用auth导致错误

提问于
浏览
1

在发布此问题之前,我已经提到How to add custom field in default registration form of Laravel 5.6?

但我的问题无法解决 . 我想在我的laravel 5.6全新安装中添加自定义字段,默认为make:auth .

这是我用于创建用户表的迁移

enter image description here

这是我对auth的registercontrller,我在这里实现了我的自定义字段

enter image description here

这里是我的模型user.php的可填充数组,它扩展了authenticble

enter image description here

这是来自寄存器控制器的dd()响应

enter image description here

最后,这是我在完成所有这些工作后得到的错误 .

enter image description here

任何帮助将不胜感激 . 提前致谢 .

1 回答

  • 1

    您的表列名称必须是“fname”而不是“Fname”

相关问题