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