diff --git a/laravel/request.php b/laravel/request.php index e78c943d..29340d71 100644 --- a/laravel/request.php +++ b/laravel/request.php @@ -247,7 +247,7 @@ class Request { // we will simply return the environment for that URI pattern. foreach ($patterns as $pattern) { - if (Str::is($pattern, $uri)) + if (Str::is($pattern, $uri) or $pattern == gethostname()) { return $environment; }