|
@@ -105,7 +105,7 @@ discard block |
|
|
block discarded – undo |
|
105
|
105
|
public function get($key, $default = null, $is_array = false) |
|
106
|
106
|
{ |
|
107
|
107
|
// return value from cache or fetch it and return it |
|
108
|
|
- return Cache::tags(self::$cache_tag)->remember($key, $this->cache_time, function () use ($key, $default, $is_array) { |
|
|
108
|
+ return Cache::tags(self::$cache_tag)->remember($key, $this->cache_time, function() use ($key, $default, $is_array) { |
|
109
|
109
|
// fetch the values from storage |
|
110
|
110
|
if (Config::has('config.'.$key)) { |
|
111
|
111
|
$config_data = Config::get('config.'.$key, $default); |
|
@@ -208,7 +208,7 @@ discard block |
|
|
block discarded – undo |
|
208
|
208
|
$this->flush(); // possible optimization: selective flush |
|
209
|
209
|
} |
|
210
|
210
|
|
|
211
|
|
- DbConfig::key($key)->get(['config_name'])->each(function ($setting) { |
|
|
211
|
+ DbConfig::key($key)->get(['config_name'])->each(function($setting) { |
|
212
|
212
|
broadcast(new SettingDeleted($setting)); |
|
213
|
213
|
}); |
|
214
|
214
|
|
Please login to merge, or discard this patch.