diff --git a/src/Illuminate/Foundation/Console/ExceptionMakeCommand.php b/src/Illuminate/Foundation/Console/ExceptionMakeCommand.php index a38b11c711e8..c6dbef8abeda 100644 --- a/src/Illuminate/Foundation/Console/ExceptionMakeCommand.php +++ b/src/Illuminate/Foundation/Console/ExceptionMakeCommand.php @@ -60,7 +60,8 @@ protected function getStub() */ protected function alreadyExists($rawName) { - return class_exists($this->rootNamespace().'Exceptions\\'.$rawName); + return class_exists($rawName) || + $this->files->exists($this->getPath($this->qualifyClass($rawName))); } /**