© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•10mo ago•
1 reply
Hyrkan

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.
form.php
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Relation Manager creating
FilamentFFilament / ❓┊help
16mo ago
Translate HasOne relation (with HasMany nested)
FilamentFFilament / ❓┊help
3y ago
Relation manager when creating a new relation refresh form values
FilamentFFilament / ❓┊help
3y ago