toArray(); $config = array_column($config, 'value', 'keys'); Cache::set('webConfig', $config, 300); } } if ($key) { if (isset($config[$key])) { return $config[$key]; } if ($default !== '##') { return $default; } } return $config; } public static function refreshSetting() { Cache::delete('webConfig'); } }