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

A quick way would be to have a family table, child table, class table and contact table. Then create a pivot table for the family and children, family and contacts, children and contacts, children and classes.

This may not be ideal. You are best have a deeper look into how to design database migrations as there are many different ways you could construct this depending on what data you wish to store for each table. It will be beneficial for the future!

0

So once I setup the relationship between the two models with hasmany and belongsto what would be the next step in collecting data from one form into the two tables? Sorry for my ignorance I am very new to all of this but have come a long way since I first learned about Laravel.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

fluentd fluentd Joined 10 Mar 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.