private function getTranslatedUrl(Request $request)
    {
        /** @var Route $route */
        $route = $request->route();

        if ( ! ($route instanceof Route) || is_null($route->getName()))
            return null;

        return $this->translateRoute($route->getName(), $route->parameters());
    }
private function getTranslatedUrl(Request $request)
    {
        /** @var Route $route */
        $route = $request->route();

        if ( ! ($route instanceof Route) || is_null($route->getName()))
            return null;

        return $this->translateRoute($route->getName(), $route->parameters());
    }
private function getTranslatedUrl ( Request $ request ) { /** @var Route $route */ $ route = $ request -> route ( ) ; if ( ! ( $ route instanceof Route ) || is_null ( $ route -> getName ( ) ) ) return null ; return $ this -> translateRoute ( $ route -> getName ( ) , $ route -> parameters ( ) ) ; }
Get translated URL.

@param  \Illuminate\Http\Request  $request

@return string|null
Get translated URL .