/** * Get the scheme for a raw URL. * * @param bool|null $secure * @return string */ protected function getScheme($secure) { if (is_null($secure)) { return $this->forceSchema ?: $this->request->getScheme() . '://'; } return $secure ? 'https://' : 'http://'; }