© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•15mo ago•
2 replies
el-schneider

Can't get hydration of nested json-field data to work

I am having trouble getting a form with nested JSON fields to hydrate properly.
The data is correctly saved to the database.
If I dd() the state in the afterStateHydrated callback, it shows the correct value, however the form fields remain empty.

What am I doing wrong?

field looks like this:
TextInput::make('options.maxDepth')
    ->numeric(),
TextInput::make('options.maxDepth')
    ->numeric(),


data saved to db:
{"maxDepth":3}
{"maxDepth":3}
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

Get field data of parent repeater from nested repeater
FilamentFFilament / ❓┊help
2y ago
Can't get extraModalFooterActions to work
FilamentFFilament / ❓┊help
2y ago
key-value field with nested json array
FilamentFFilament / ❓┊help
3y ago
$get can't work in mutateRelationshipDataBeforeCreateUsing()
FilamentFFilament / ❓┊help
3y ago