© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
9 replies
Daniel

Save nested relationship on create

I do have the following nested structure:

-> user

--> person

---> primaryEmail

All these are defined by
morphOne
morphOne
relationships.

When I
create
create
a new user only the
person
person
gets saved but not the
primaryEmail
primaryEmail
relationship.

When I
edit
edit
an existing user model everything is working properly.

How can I get this working?

This screenshot shows the nesting:
CleanShot_2023-03-27_at_09.56.142x.png
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

Can't save relationship on create
FilamentFFilament / ❓┊help
2y ago
Summing TextColumn on nested relationship
FilamentFFilament / ❓┊help
2y ago
How to save morphToMany relationship during create?
FilamentFFilament / ❓┊help
2y ago
Nested relationship managers
FilamentFFilament / ❓┊help
3y ago