getRootUrl() protected method

Get the base URL for the request.
protected getRootUrl ( string $scheme, string $root = null ) : string
$scheme string
$root string
return string
 protected function newGetRootUrl($scheme, $root = null)
 {
     if ($root == null) {
         $root = parent::getRootUrl($scheme) . (defined('LARAVEL_SHARED') ? '/public' : '');
     }
     return parent::getRootUrl($scheme, $root);
 }