Request::getBaseUrl PHP 메소드

getBaseUrl() 공개 정적인 메소드

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
리턴 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

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