From 355cbe35a58a7ef9c0106cf773617e1b6359d8f1 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Wed, 31 Oct 2012 08:53:01 -0500 Subject: [PATCH] use hostname in environment detection. --- laravel/request.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@ public static function detect_env(array $environments, $uri) // 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; }