How to Insert Relationship Via Controller
Hello , I have 2 models , one is user other one is register , "User hasone register " i need to create that relationship , Problem is even i created data is not saving in database, here is the screen shots in my code :
- Register Model
- User Model
Here is my controller Screenshot
Problem is itsnot saving when user fill my form , How to fixed that . help me =D
Add $customer->save();
after $customer->id = $request->user_id;
.
Best Regards,
Mark Topper (Maintainer of Laravel Voyager)
Mail: [email protected]
I am available for freelance work - hire me