Creating morphOne with a hasOne relation from a morphTo relation manager

A client can have many contracts, a recruitment contract has a morphOne relation with contract, and also a hasOne relation with visa I'm using contracts relation manager for clients, where in a wizard layout, user can choose contract type, than fill the morphTo contract details, and the final step is to fill the details of the selected contract type. Everything works correctly except the Visa information are not stored into the database and consequently visa model does not get attached to recruitment contract. this is my form https://gist.github.com/AGN907/2d02f6fc43253a01a124e036f15e557f
Gist
form.php
GitHub Gist: instantly share code, notes, and snippets.
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?