From 59d25712da5b473c9e1d0a53cc622c3f7222a3cb Mon Sep 17 00:00:00 2001 From: norozap Date: Wed, 8 Feb 2017 00:37:36 -0400 Subject: [PATCH] More updates to laravel 5.4 GeneratorCommand's function parseName was renamed to qualifyClass. This affected the creation of controller, and model observer when executing: php artisan panel:crud I'm assuming php artisan panel:createcontroller will output the same error. --- .../Panel/Commands/CreateControllerPanelCommand.php | 2 +- .../Panel/Commands/CreateModelObserverCommand.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Serverfireteam/Panel/Commands/CreateControllerPanelCommand.php b/src/Serverfireteam/Panel/Commands/CreateControllerPanelCommand.php index 8d3e5ae..6458757 100644 --- a/src/Serverfireteam/Panel/Commands/CreateControllerPanelCommand.php +++ b/src/Serverfireteam/Panel/Commands/CreateControllerPanelCommand.php @@ -62,7 +62,7 @@ protected function getDefaultNamespace($rootNamespace) */ public function fire() { - $name = $this->parseName($this->getNameInput()) . 'Controller'; + $name = $this->qualifyClass($this->getNameInput()) . 'Controller'; if ($this->files->exists($path = $this->getPath($name))) { diff --git a/src/Serverfireteam/Panel/Commands/CreateModelObserverCommand.php b/src/Serverfireteam/Panel/Commands/CreateModelObserverCommand.php index 41eadc1..927e0ff 100644 --- a/src/Serverfireteam/Panel/Commands/CreateModelObserverCommand.php +++ b/src/Serverfireteam/Panel/Commands/CreateModelObserverCommand.php @@ -53,7 +53,7 @@ protected function getDefaultNamespace($rootNamespace) */ public function fire() { - $name = $this->parseName($this->getNameInput()); + $name = $this->qualifyClass($this->getNameInput()); if ($this->files->exists($path = $this->getPath($name . 'Observer'))) {