Closed ideal1sm closed 1 year ago
Hi,
I have installed package and cast my json field - imported with use statement t the top as so:
JsonArray::make('Mails', 'data->main') ->fullWidth() ->rules([ 'required', 'array', 'between:1,10', ]) ->field( field: Text::make('Email', 'email') ->fullWidth() ->rules([ 'required', ]), ),
However unfortunately this has not worked for me - on Nova detail and edit it shows label name but no text fields.
Data is stored in the database.
Need to write in model. Sorry for issue
protected $casts = [ 'data' => 'array' ];
Hi,
I have installed package and cast my json field - imported with use statement t the top as so:
However unfortunately this has not worked for me - on Nova detail and edit it shows label name but no text fields.
Data is stored in the database.