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