diff --git a/src/Illuminate/Foundation/Console/AppNameCommand.php b/src/Illuminate/Foundation/Console/AppNameCommand.php index 8ffd83f2a019..111147552c95 100644 --- a/src/Illuminate/Foundation/Console/AppNameCommand.php +++ b/src/Illuminate/Foundation/Console/AppNameCommand.php @@ -95,6 +95,7 @@ protected function setAppDirectoryNamespace() { $files = Finder::create() ->in($this->laravel['path']) + ->contains($this->currentRoot) ->name('*.php'); foreach ($files as $file) {