setLocale() public method

Set and return current locale
public setLocale ( string $locale = null ) : string
$locale string Locale to set the App to (optional)
return string Returns locale (if route has any) or null (if route does not have a locale)
Example #1
0
 /**
  * Set and return current locale
  *
  * @param string $locale Locale to set the App to (optional)
  * @return string Returns locale (if route has any) or null (if route does not have a locale)
  * @static 
  */
 public static function setLocale($locale = null)
 {
     return \Mcamara\LaravelLocalization\LaravelLocalization::setLocale($locale);
 }