Support the ongoing development of Laravel.io →
Input Database
Last updated 1 year ago.
0

I did it!

But I consider my solution a little ugly:

$perfil = Perfil::create($input);
		
$perfil->user_id = $input["user_id"];
		
$perfil->save();
				
$user->perfil = $perfil;

Is there a better way?

Last updated 1 year ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

fbidu fbidu Joined 30 Apr 2014

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.