Skip to content

Commit

Permalink
Fix casts
Browse files Browse the repository at this point in the history
  • Loading branch information
Tarpsvo committed Jan 4, 2023
1 parent 66f5ed5 commit 28cb88f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NovaSettingsStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function getSettings(array $settingKeys = null, array $defaults = [])
return [$settingKey => $this->cache[$settingKey]];
})->toArray();

$settings = $settingsModel::whereIn('key', $settingKeys)->pluck('value', 'key');
$settings = $settingsModel::whereIn('key', $settingKeys)->get()->pluck('value', 'key');

return collect($settingKeys)->flatMap(function ($settingKey) use ($settings, $defaults) {
$settingValue = $settings[$settingKey] ?? null;
Expand Down

0 comments on commit 28cb88f

Please sign in to comment.