LaravelLocalization::getURLFromRouteNameTranslated PHP Method

getURLFromRouteNameTranslated() public static method

Returns an URL adapted to the route name and the locale given
public static getURLFromRouteNameTranslated ( string | boolean $locale, string $transKeyName, array $attributes = [] ) : string | false
$locale string | boolean Locale to adapt
$transKeyName string Translation key name of the url to adapt
$attributes array Attributes for the route (only needed if transKeyName needs them)
return string | false URL translated
        public static function getURLFromRouteNameTranslated($locale, $transKeyName, $attributes = array())
        {
            return \Mcamara\LaravelLocalization\LaravelLocalization::getURLFromRouteNameTranslated($locale, $transKeyName, $attributes);
        }