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

Hoep i`ve undestand well what do you want but i think u can use this:

$person = new App\Person();
$demografic = new App\Demografic();
$preferences = new App\Preferences();

// populate all variables from the form

$person->save();
$person->demografic()->save($demografic);
$person->preferences()->save($preferences);

Variable names are clearly iphotetic :D

Just an idea ....

Maybe use some transactions so u can catch errors and rollback so u not get partial saving.

Last updated 8 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

ebakunin ebakunin Joined 12 Aug 2015

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.