© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
3 replies
Anyádpasija

Nested relationships.

Hi guys! I have a a big issue with nested relationship while i try to create a new model.

I have a Person, BaseData and Address model.

The relationships:

a Person has a BaseData and the BaseData has an Address.

I tried to solve like this in my Person class:

public function baseData() : belongsTo
{
return $this->belongTo(BaseData::class)->with('address');
}

But this kind of approach only work if i edit the Person and not in creation process.

Do you have any idea? I tried to google this issue, but i couldn't find any answer.
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

Nested relationships
FilamentFFilament / ❓┊help
3y ago
Nested relationships - help
FilamentFFilament / ❓┊help
3y ago
Selects and Nested Relationships
FilamentFFilament / ❓┊help
3y ago
Nested Relationships data not beeing saved
FilamentFFilament / ❓┊help
2y ago