]> BookStack Code Mirror - bookstack/blob - app/Http/Request.php
Update passwords.php
[bookstack] / app / Http / Request.php
1 <?php namespace BookStack\Http;
2
3 use Illuminate\Http\Request as LaravelRequest;
4
5 class Request extends LaravelRequest
6 {
7
8     /**
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
12      */
13     public function getSchemeAndHttpHost()
14     {
15         $base = config('app.url', null);
16
17         if ($base) {
18             $base = trim($base, '/');
19         } else {
20             $base = $this->getScheme().'://'.$this->getHttpHost();
21         }
22
23         return $base;
24     }
25
26 }
Morty Proxy This is a proxified and sanitized view of the page, visit original site.