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:
Samuel Georges 2017-05-12 07:19:06 +10:00
parent 30289f03f3
commit 5ea79489af
3 changed files with 9 additions and 5 deletions

View File

@ -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) {

View File

@ -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;
}

View File

@ -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()