1 <?php namespace BookStack\Http;
3 use Illuminate\Http\Request as LaravelRequest;
5 class Request extends LaravelRequest
9 * Override the default request methods to get the scheme and host
10 * to set the custom APP_URL, if set.
11 * @return \Illuminate\Config\Repository|mixed|string
13 public function getSchemeAndHttpHost()
15 $base = config('app.url', null);
18 $base = trim($base, '/');
20 $base = $this->getScheme().'://'.$this->getHttpHost();