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
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'), ]);
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community