This question/issue is on v1.8.0, Laravel 7.26.1. Does the package support nested properties - $model->extra_attribute->someProperty->someNestedProperty? If so, how do I set one?
Here's what I tried on our User model, where one of our schemaless attributes is timezone.
This works as expected. Yet if I try to create a property within someVal:
>>> $user->timezone->someKey->someNestedKey = 'someNestedVal';
PHP Notice: Indirect modification of overloaded property Spatie/SchemalessAttributes/SchemalessAttributes::$someKey has no effect in Psy Shell code on line 1
PHP Warning: Attempt to assign property 'someNestedKey' of non-object in Psy Shell code on line 1
=> null
This question/issue is on v1.8.0, Laravel 7.26.1. Does the package support nested properties -
$model->extra_attribute->someProperty->someNestedProperty
? If so, how do I set one?Here's what I tried on our User model, where one of our schemaless attributes is
timezone
.This works as expected. Yet if I try to create a property within
someVal
:Thank you.