anlutro / laravel-settings

Persistent settings in Laravel
MIT License
940 stars 112 forks source link

fix behavior of Settings::get when $key is an array and defaults are set #144

Closed anlutro closed 4 years ago

anlutro commented 4 years ago

ArrayUtil::get didn't properly process defaults at all when working with arrays. This meant that SettingStore::get([...]) also didn't work properly if defaults were set.

Also changed SettingStore to properly handle the case of array keys and defaults.

Fixes #143