Skip to content
Advertisement

Laravel Validation – The full name field is required [closed]

I’m trying my first form validation with Laravel, and for some reason the first field (full name) won’t accept anything I type and return an error “The full name field is required”.

My form view.

JavaScript

ContactController

JavaScript

Contact model

JavaScript

Migration file

JavaScript

Any idea why the first field “fullName” won’t accept anything? No matter what I type in, it says the required field is empty. Thanks.

Advertisement

Answer

You have a typo on your name field it is fullName not fullname

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