diff --git a/src/Illuminate/Routing/Console/ControllerMakeCommand.php b/src/Illuminate/Routing/Console/ControllerMakeCommand.php index 3bf6579bc279..c4f27fba5ea3 100755 --- a/src/Illuminate/Routing/Console/ControllerMakeCommand.php +++ b/src/Illuminate/Routing/Console/ControllerMakeCommand.php @@ -127,7 +127,7 @@ protected function buildClass($name) $replace['abort(404);'] = '//'; } - $baseControllerExists = class_exists($rootNamespace.'Http\Controllers\Controller'); + $baseControllerExists = file_exists(app_path('Http/Controllers/Controller.php')); if ($baseControllerExists) { $replace["use {$controllerNamespace}\Controller;\n"] = '';