We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0cb7b99 commit c691ac4Copy full SHA for c691ac4
src/UrlGenerator.php
@@ -57,7 +57,7 @@ public function route($name, $parameters = [], $absolute = true, $locale = null)
57
// Check if the locale is supported
58
if ( ! in_array($locale, $this->getSupportedLocales())) {
59
// Use a fallback locale if provided
60
- $locale = Config::get('localized-routes.fallback_locale', $locale);
+ $locale = Config::get('localized-routes.fallback_locale') ?: $locale;
61
}
62
63
// Normalize the route name by removing any locale prefix.
0 commit comments