diff --git a/src/Console/Commands/Make/MakeCommand.php b/src/Console/Commands/Make/MakeCommand.php index 0610e7a..440031f 100644 --- a/src/Console/Commands/Make/MakeCommand.php +++ b/src/Console/Commands/Make/MakeCommand.php @@ -11,20 +11,19 @@ class MakeCommand extends ConsoleMakeCommand protected function replaceClass($stub, $name) { - $stub = parent::replaceClass($stub, $name); $module = $this->module(); if ($module && (! $this->option('command') || 'command:name' === $this->option('command'))) { $cli_name = Str::of($name)->classBasename()->kebab(); $find = [ - "'command:name'", - "'app:{$cli_name}'", + "command:name", + "app:{$cli_name}", ]; - $stub = str_replace($find, "'{$module->name}:{$cli_name}'", $stub); + $stub = str_replace($find, "{$module->name}:{$cli_name}", $stub); } - return $stub; + return parent::replaceClass($stub, $name); } }