Commit 355cbe35 authored by Taylor Otwell's avatar Taylor Otwell

use hostname in environment detection.

parent 4d0bc9e2
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment