pluck -> value
This is an odd one from Laravel, pluck is now value and lists is now pluck. We'll need a release note about this one.
This commit is contained in:
parent
30289f03f3
commit
5ea79489af
|
|
@ -153,12 +153,12 @@ class Theme
|
|||
try {
|
||||
try {
|
||||
$dbResult = Cache::remember(self::ACTIVE_KEY, 1440, function () {
|
||||
return Parameter::applyKey(self::ACTIVE_KEY)->pluck('value');
|
||||
return Parameter::applyKey(self::ACTIVE_KEY)->value('value');
|
||||
});
|
||||
}
|
||||
catch (Exception $ex) {
|
||||
// Cache failed
|
||||
$dbResult = Parameter::applyKey(self::ACTIVE_KEY)->pluck('value');
|
||||
$dbResult = Parameter::applyKey(self::ACTIVE_KEY)->value('value');
|
||||
}
|
||||
}
|
||||
catch (Exception $ex) {
|
||||
|
|
|
|||
|
|
@ -318,7 +318,7 @@ class VersionManager
|
|||
if (!isset($this->databaseVersions[$code])) {
|
||||
$this->databaseVersions[$code] = Db::table('system_plugin_versions')
|
||||
->where('code', $code)
|
||||
->pluck('version')
|
||||
->value('version')
|
||||
;
|
||||
}
|
||||
|
||||
|
|
@ -428,7 +428,11 @@ class VersionManager
|
|||
return $this->databaseHistory[$code];
|
||||
}
|
||||
|
||||
$historyInfo = Db::table('system_plugin_history')->where('code', $code)->orderBy('id')->get();
|
||||
$historyInfo = Db::table('system_plugin_history')
|
||||
->where('code', $code)
|
||||
->orderBy('id')
|
||||
->get()
|
||||
->all();
|
||||
|
||||
return $this->databaseHistory[$code] = $historyInfo;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ class Status extends ReportWidgetBase
|
|||
$this->vars['coreBuild'] = Parameter::get('system::core.build');
|
||||
$this->vars['eventLog'] = EventLog::count();
|
||||
$this->vars['requestLog'] = RequestLog::count();
|
||||
$this->vars['appBirthday'] = PluginVersion::orderBy('created_at')->pluck('created_at');
|
||||
$this->vars['appBirthday'] = PluginVersion::orderBy('created_at')->value('created_at');
|
||||
}
|
||||
|
||||
public function onLoadWarningsForm()
|
||||
|
|
|
|||
Loading…
Reference in New Issue