plank / laravel-metable

A package for handling arbitrary data in Laravel 5 applications
MIT License
281 stars 42 forks source link

[Suggestion] Merge metas with $defaultMetaValues #65

Closed elvendor closed 3 years ago

elvendor commented 3 years ago

Currently having a Model with $defaultMetaValues with no meta, $model->getAllMeta() returns an empty collection. Wouldn't it be great to merge those $defaultMetaValues with collection when using $model->getAllMeta()?

frasmage commented 3 years ago

Added in 5.1.0