Browse Source

use hostname in environment detection.

Taylor Otwell 12 years ago
parent
commit
355cbe35a5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      laravel/request.php

+ 1 - 1
laravel/request.php

@@ -247,7 +247,7 @@ class Request {
 			// we will simply return the environment for that URI pattern.
 			// we will simply return the environment for that URI pattern.
 			foreach ($patterns as $pattern)
 			foreach ($patterns as $pattern)
 			{
 			{
-				if (Str::is($pattern, $uri))
+				if (Str::is($pattern, $uri) or $pattern == gethostname())
 				{
 				{
 					return $environment;
 					return $environment;
 				}
 				}