10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e448d32 commit d374a8bCopy full SHA for d374a8b
src/Routing/UrlGenerator.php
@@ -26,6 +26,13 @@ class UrlGenerator
26
* @var string|null
27
*/
28
protected $cachedRoot;
29
+
30
+ /**
31
+ * Url schema to be forced
32
+ *
33
+ * @var string|null
34
+ */
35
+ protected $forceSchema;
36
37
/**
38
* Create a new URL redirector instance.
@@ -156,7 +163,7 @@ protected function getScheme($secure)
156
163
{
157
164
if (is_null($secure))
158
165
159
- return $this->forceSchema ?: $this->request->getScheme().'://';
166
+ return $this->forceSchema ?: $this->app->make('request')->getScheme().'://';
160
167
}
161
168
162
169
return $secure ? 'https://' : 'http://';
0 commit comments