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.
Sign in to participate in this thread!
We'd like to thank these amazing companies for supporting us