Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

nine's avatar
Level 1

attached forms

Hi,

I have 3 linked tables with a hasMany relation.

for this 3 models i have also 3 forms to fill in specific order : fill form 1 (to generate id 1 ) then fill form 2 (to generate id 2) then fill form 3

I'm confused with views because i want to display these 3 forms like one block So let's say i fill form 1 and save it in database. I have now hidden input with id 1 in form 1.

How to display now, in the same view, form 2 and say to user " continue filling its not terminated ! " Where put the logic ? How to manage that ?

Thank you

0 likes
2 replies
morteza's avatar

If all your data is related and should insert in the same time, you can do in 2 ways: 1- using wizard forms, user see form 1 and can click on next to see form 2 and form 2 has previous and next button, as well as form 3. All next and previous buttons handle with jquery and don't submit form except finish button on last form. 2- using vue in very easy and fun way.

nine's avatar
Level 1

i'm new in laravel , passing data between view/controller, update and refresh form etc ... is not so easy for me :( anyway, i prefer the second idea, to go deep in knowledge of laravel

thank you

Please or to participate in this conversation.