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