public setBaseUrl ( string $url ) | ||
$url | string | Base url for the site |
public function setBaseUrl($url)
{
if (substr($url, -1) != "/") {
$url .= "/";
}
$this->baseUrl = $url;
}
/** * Sets the base url for the site * * @param string $url Base url for the site * @static */ public static function setBaseUrl($url) { return \Mcamara\LaravelLocalization\LaravelLocalization::setBaseUrl($url); }