kodeine / laravel-meta

Fluent Meta Data for Eloquent Models, as if it is a property on your model
MIT License
400 stars 90 forks source link

[2.0.1] Improved getMetaArray method by removing linear search from getMetaArray #96

Closed siamak2 closed 2 years ago

siamak2 commented 2 years ago

getMetaArray was performing linear search on metas. Metas already indexed by their keys so I removed linear search and replaced it with loop on requested keys and checking if that key exists on metas. And some minor changes.

kodeine commented 2 years ago

looks good, thank you!