Arcanedev\Localization\Bases\Middleware::getLocalizedRedirect PHP Метод

getLocalizedRedirect() защищенный Метод

Get the redirection response.
protected getLocalizedRedirect ( string $locale ) : Illuminate\Http\RedirectResponse | null
$locale string
Результат Illuminate\Http\RedirectResponse | null
    protected function getLocalizedRedirect($locale)
    {
        $localizedUrl = localization()->getLocalizedURL($locale);
        if (!is_string($localizedUrl)) {
            return null;
        }
        return $this->makeRedirectResponse($localizedUrl);
    }