1
0
mirror of https://github.com/flarum/core.git synced 2025-08-12 03:14:33 +02:00

lists > pluck

This commit is contained in:
Daniel Klabbers
2017-10-05 13:39:41 +02:00
parent 4f688fc9a2
commit 2037371886
13 changed files with 33 additions and 33 deletions

View File

@@ -24,7 +24,7 @@ class DatabaseSettingsRepository implements SettingsRepositoryInterface
public function all()
{
return $this->database->table('settings')->lists('value', 'key');
return $this->database->table('settings')->pluck('value', 'key');
}
public function get($key, $default = null)