Skip to content

Commit 355cbe3

Browse files
committed
use hostname in environment detection.
1 parent 4d0bc9e commit 355cbe3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

laravel/request.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ public static function detect_env(array $environments, $uri)
247247
// we will simply return the environment for that URI pattern.
248248
foreach ($patterns as $pattern)
249249
{
250-
if (Str::is($pattern, $uri))
250+
if (Str::is($pattern, $uri) or $pattern == gethostname())
251251
{
252252
return $environment;
253253
}

0 commit comments

Comments
 (0)