diff --git a/models/Locale.php b/models/Locale.php index 4304085..57647b8 100644 --- a/models/Locale.php +++ b/models/Locale.php @@ -90,6 +90,9 @@ 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; + Cache::forget('winter.translate.defaultLocale'); } /**