diff --git a/app/Services/OptionRepository.php b/app/Services/OptionRepository.php index bde77f5b..2a48a339 100644 --- a/app/Services/OptionRepository.php +++ b/app/Services/OptionRepository.php @@ -53,6 +53,10 @@ class OptionRepository implements ArrayAccess, ConfigContract */ public function get($key, $default = null) { + if (!$this->has($key) && Arr::has(config('options'), $key)) { + $this->set($key, config("options.$key")); + } + return Arr::get($this->items, $key, $default); }