Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0bbe9c5

Browse files
committed
Merge pull request laravel#1111 from awellis13/patch-1
Changing isMachine() to support gethostname() with wildcard "host" value...
2 parents 747bf82 + 577ec7e commit 0bbe9c5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Illuminate/Foundation/Application.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ protected function detectConsoleEnvironment($base, $environments, array $argumen
273273
*/
274274
protected function isMachine($name)
275275
{
276-
return gethostname() == $name;
276+
return str_is($name, gethostname());
277277
}
278278

279279
/**

0 commit comments

Comments
 (0)