spatie / laravel-schemaless-attributes

Add schemaless attributes to Eloquent models
https://spatie.be/en/opensource
MIT License
996 stars 58 forks source link

Set nested properties #77

Closed invaders-xx closed 3 years ago

invaders-xx commented 3 years ago

I am using 1.8.3 version on Laravel 8 and it seems that $model->extra_attribute->set('value1.value2.value3.value4', value5) does not work ? Is that correct ? Is there a simple way to make it working ?

Many thanks in advance,

David

freekmurze commented 3 years ago

Check the tests to see if it is supported. If it is not I'd appreciate a PR with tests that adds this to the package.

faisuc commented 3 years ago

@invaders-xx Base on the tests. This feature is already implemented in the package.

https://github.com/spatie/laravel-schemaless-attributes/blob/a44a3d1f7c275ab2ee5435c08e50cea913bb89d6/tests/HasSchemalessAttributesTest.php#L101-L108

spatie-bot commented 3 years ago

Dear contributor,

because this issue seems to be inactive for quite some time now, I've automatically closed it. If you feel this issue deserves some attention from my human colleagues feel free to reopen it.