Request::getSchemeAndHttpHost PHP Method

getSchemeAndHttpHost() public static method

If the URL was called with basic authentication, the user and the password are not added to the generated string.
public static getSchemeAndHttpHost ( ) : string
return string The scheme and HTTP host
        public static function getSchemeAndHttpHost()
        {
            //Method inherited from \Symfony\Component\HttpFoundation\Request
            return \Illuminate\Http\Request::getSchemeAndHttpHost();
        }

Usage Example

 /**
  * @inheritdoc
  */
 public function getConfig()
 {
     $config = config(C::NAME, []);
     /** @noinspection PhpUndefinedClassInspection */
     $config[C::JSON][C::JSON_URL_PREFIX] = \Request::getSchemeAndHttpHost();
     return $config;
 }
All Usage Examples Of Request::getSchemeAndHttpHost