0

I have a one-to-many data model which need to be populated through a multi-step forms. Is there any boilerplate or general guideline to implement this in Laravel?

Let say there is this Company and Employee models with one-to-many relationship. Now, with this multi-step form how to create a Company with N Employees in one transaction?

I know how to implement one-to-many relationship but need a solution about how to persist the parent and children data when navigating forms back and forth.

Thank you!

tekzoom
  • 49
  • 5
  • see the documentation https://laravel.com/docs/5.3/eloquent-relationships#one-to-many – Sanzeeb Aryal Jan 15 '17 at 08:55
  • My question is how to persist the data when navigating between multi-step forms. I know how to implement one-to-many relationship but need a solution about how to persist the parent and children data when navigating forms back and forth. – tekzoom Jan 15 '17 at 17:50

0 Answers0