nova-json icon indicating copy to clipboard operation
nova-json copied to clipboard

add support for arrow notation at child fields level

Open scramatte opened this issue 1 year ago • 0 comments

Hello,

This PR add support for arrow notation at chield field level allowing the following kind of structure or more complex:

{
  "emails": [
     {
       "attributes": {
         "name": "test",
         "value": "hola mundo"
       }
     }
  ]
}
JsonRepeatable::make('emails')
                ->fields([
                    Text::make('name', 'attributes->name'),
                    Text::make('value'), 'attributes->value'),
                ]),

scramatte avatar May 04 '24 17:05 scramatte