Skip to content
Advertisement

Custom fields in laravel 5.6 default auth causing error

Before posting this question i’ve already referred to How to add custom field in default registration form of Laravel 5.6?

But no solution for my problem. I wanted to add custom fields in my laravel 5.6 fresh install with it’s default make:auth.

this is my migration for creating user table

enter image description here

this is my registercontrller for auth and i’ve implemented my custom fields here

enter image description here

and here is fillable array of my model user.php which extends authenticble

enter image description here

This is dd() response from register controller

enter image description here

And in the end here is the error that i’m getting after doing all this.

enter image description here

Any help will be appreciated . Thanks in advance.

Advertisement

Answer

your table column’s name must be “fname” not “Fname”

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement