$model->getAttribute('help');
string '{
"user": {
"type": "class",
"methodTitle": "modelTitle",
"class": "\\gm\\models\\users\\tables\\Users",
"fields": {
"username" : "attribute",
"first_name": "attribute",
"last_name": "attribute",
"second_name": "attribute"
}
}
}'
$model->fields->username
use Symfony\Component\PropertyAccess\PropertyAccess;
$accessor = PropertyAccess::createPropertyAccessor();
echo $accessor->getValue(json_decode($model->getAttribute('help')), 'user.fields.username'));
composer require "symfony/property-access"
$str = $model->getAttribute('help');
$array = json_decode($str);
echo $array['user']['fields']['username'];