Support the ongoing development of Laravel.io →
Laravel
0

Please check in the User model fillable item if it has passed the contact_name

Also you can do dd($request->all()); and see if contact_name is passed or not.

-Skynet Technologies

Last updated 1 year ago.
0

thanx!! so sorry for delay.... ill try it!!

0
moderator

The problem is that there isn't any definition for your contact_name variable on the request.

I suspect you can change it to use the input method on the request:

$user = User::create([ 'contact_name' => $request->input('contact_name'), ]);
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.