From 159768961bea5f9034309ef510cc64cd60596b83 Mon Sep 17 00:00:00 2001 From: Felipe Fontana Date: Mon, 16 Nov 2015 17:54:15 -0300 Subject: [PATCH] Fix namespace path of Controller he create wrong path to controller namespace --- Commands/ControllerCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Commands/ControllerCommand.php b/Commands/ControllerCommand.php index 6e2b0c5..4ad68f4 100644 --- a/Commands/ControllerCommand.php +++ b/Commands/ControllerCommand.php @@ -55,7 +55,7 @@ protected function getTemplateContents() return (new Stub('/controller.stub', [ 'MODULENAME' => $module->getStudlyName(), 'CONTROLLERNAME' => $this->getControllerName(), - 'NAMESPACE' => $module->getLowername(), + 'NAMESPACE' => $module->getStudlyName(), 'CLASS_NAMESPACE' => $this->getClassNamespace($module), 'CLASS' => $this->getClass(), 'LOWER_NAME' => $module->getLowerName(),