JSON Values and Hidden Fields
I am using the following fields attached (statePath) to a JSON column:
The output of the repeater is a JSON object with the following keys: min, max, rec-min, rec-max, and default. If the values of the min and max fields are equal, the rec-min and rec-max fields are hidden and their values are null in the JSON object.
I have two questions about this:
1- How do I keep the values of the min, max, rec-min, and rec-max fields as integers?
2- Is there an ability to not dehydrate the fields if they are hidden?
All the fields were hidden:
The fields where partially visible with some values:
Field cast in Eloquent
The output of the repeater is a JSON object with the following keys: min, max, rec-min, rec-max, and default. If the values of the min and max fields are equal, the rec-min and rec-max fields are hidden and their values are null in the JSON object.
I have two questions about this:
1- How do I keep the values of the min, max, rec-min, and rec-max fields as integers?
2- Is there an ability to not dehydrate the fields if they are hidden?
All the fields were hidden:
The fields where partially visible with some values:
Field cast in Eloquent