protected getLocalizedRedirect ( string $locale ) : Illuminate\Http\RedirectResponse | null | ||
$locale | string | |
Résultat | Illuminate\Http\RedirectResponse | null |
protected function getLocalizedRedirect($locale)
{
$localizedUrl = localization()->getLocalizedURL($locale);
if (!is_string($localizedUrl)) {
return null;
}
return $this->makeRedirectResponse($localizedUrl);
}