diff --git a/src/helpers.php b/src/helpers.php index 2062f1e..70fe13d 100644 --- a/src/helpers.php +++ b/src/helpers.php @@ -15,3 +15,15 @@ function setting($key, $default = null, $keySeperator = false) } } } + +if (!function_exists('setting_array')) { + /** + * Get a Setting array from cache or database + * + * @return array + */ + function setting_array($key, $default = null, $keySeperator = ':') + { + return NickDeKruijk\Settings\Setting::get($key, $default, $keySeperator); + } +}