From 28cb88f08fbff6169bb533f6886093db86055681 Mon Sep 17 00:00:00 2001 From: Tarvo R Date: Wed, 4 Jan 2023 15:14:36 +0200 Subject: [PATCH] Fix casts --- src/NovaSettingsStore.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NovaSettingsStore.php b/src/NovaSettingsStore.php index 17ba9e7..6e4429e 100644 --- a/src/NovaSettingsStore.php +++ b/src/NovaSettingsStore.php @@ -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;