From e35aeb8e520b85e61bb9c9cab2db7a1f9561b8ad Mon Sep 17 00:00:00 2001 From: Roman Shkabko Date: Thu, 23 Feb 2023 16:59:50 +0200 Subject: [PATCH] Reboot all settings when use setExtraColumns() Fix bug https://github.com/anlutro/laravel-settings/issues/175 --- src/DatabaseSettingStore.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/DatabaseSettingStore.php b/src/DatabaseSettingStore.php index 5abea1d..6644698 100644 --- a/src/DatabaseSettingStore.php +++ b/src/DatabaseSettingStore.php @@ -117,6 +117,7 @@ public function setConstraint(\Closure $callback) */ public function setExtraColumns(array $columns) { + $this->forgetAll(); $this->extraColumns = $columns; }