el-schneider
el-schneider
FFilament
Created by el-schneider on 11/15/2024 in #❓┊help
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}
2 replies