diff --git a/models/Locale.php b/models/Locale.php index de34a9f..5d69a8c 100644 --- a/models/Locale.php +++ b/models/Locale.php @@ -100,7 +100,7 @@ public function makeDefault() $this->newQuery()->where('id', $this->id)->update(['is_default' => true]); $this->newQuery()->where('id', '<>', $this->id)->update(['is_default' => false]); - static::$defaultLocale = $this; + self::$defaultLocale = null; Cache::forget('winter.translate.defaultLocale'); }