diff --git a/src/Mcamara/LaravelLocalization/Middleware/SetLocale.php b/src/Mcamara/LaravelLocalization/Middleware/SetLocale.php index dad662b..c30751c 100644 --- a/src/Mcamara/LaravelLocalization/Middleware/SetLocale.php +++ b/src/Mcamara/LaravelLocalization/Middleware/SetLocale.php @@ -66,7 +66,7 @@ protected function fallbackLocale(Request $request): string // but if hideDefaultLocaleInURL is false, we may have to retrieve it from the browser... if ($this->laravelLocalization->useAcceptLanguageHeader()) { - $negotiator = new LanguageNegotiator($defaultLocale, $this->getSupportedLocales(), $request); + $negotiator = new LanguageNegotiator($defaultLocale, $this->laravelLocalization->getSupportedLocales(), $request); return $negotiator->negotiateLanguage(); }