Request::getBaseUrl PHP Method

getBaseUrl() public static method

The base URL never ends with a /. This is similar to getBasePath(), except that it also includes the script filename (e.g. index.php) if one exists.
public static getBaseUrl ( ) : string
return string The raw URL (i.e. not urldecoded)
        public static function getBaseUrl()
        {
            //Method inherited from \Symfony\Component\HttpFoundation\Request
            return \Illuminate\Http\Request::getBaseUrl();
        }

Usage Example

Beispiel #1
0
 public function baseUrl()
 {
     if ($this->_baseUrl === null) {
         $this->_baseUrl = $this->_request->getBaseUrl();
     }
     return $this->_baseUrl;
 }
All Usage Examples Of Request::getBaseUrl