© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
10 replies
Jamie Cee

Missing field on relationship

I have this relationship fieldset
                Fieldset::make('Address')
                    ->relationship('address')
                    ->schema([
                        Forms\Components\TextInput::make('city')
                            ->required(),
                        Forms\Components\TextInput::make('state')
                            ->required(),
                        Forms\Components\TextInput::make('zip')
                            ->required(),
                        Forms\Components\TextInput::make('origin_country')
                            ->disabled()
                            ->dehydrated(false)
                            ->readOnly(),
                    ])
                    ->mutateRelationshipDataBeforeFillUsing(fn ($data) => dd($data)),
                Fieldset::make('Address')
                    ->relationship('address')
                    ->schema([
                        Forms\Components\TextInput::make('city')
                            ->required(),
                        Forms\Components\TextInput::make('state')
                            ->required(),
                        Forms\Components\TextInput::make('zip')
                            ->required(),
                        Forms\Components\TextInput::make('origin_country')
                            ->disabled()
                            ->dehydrated(false)
                            ->readOnly(),
                    ])
                    ->mutateRelationshipDataBeforeFillUsing(fn ($data) => dd($data)),


My issue is, in the $data, origin_country does not exist. But in the database it exists, in my model fillable it exists.

Am I missing something?
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

->relationship() on form field directly?
FilamentFFilament / ❓┊help
4mo ago
Reorder on Select field relationship
FilamentFFilament / ❓┊help
2y ago
unknown field on BelongsToMany relationship
FilamentFFilament / ❓┊help
3y ago
count of field on relationship
FilamentFFilament / ❓┊help
3y ago