Missing field on relationship
I have this relationship fieldset
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?
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?