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
this is my registercontrller for auth and i’ve implemented my custom fields here
and here is fillable array of my model user.php which extends authenticble
This is dd() response from register controller
And in the end here is the error that i’m getting after doing all this.
Any help will be appreciated . Thanks in advance.
Advertisement
Answer
your table column’s name must be “fname” not “Fname”