getURLFromRouteNameTranslated() публичный Метод

Returns an URL adapted to the route name and the locale given
public 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)
Результат string | false URL translated
Пример #1
0
 /**
  * Returns an URL adapted to the route name and the locale given
  *
  * @throws SupportedLocalesNotDefined
  * @throws UnsupportedLocaleException
  * @param string|boolean $locale Locale to adapt
  * @param string $transKeyName Translation key name of the url to adapt
  * @param array $attributes Attributes for the route (only needed if transKeyName needs them)
  * @return string|false URL translated
  * @static 
  */
 public static function getURLFromRouteNameTranslated($locale, $transKeyName, $attributes = array())
 {
     return \Mcamara\LaravelLocalization\LaravelLocalization::getURLFromRouteNameTranslated($locale, $transKeyName, $attributes);
 }