Skip to content

Commit

Permalink
Update MakeCommand.php
Browse files Browse the repository at this point in the history
  • Loading branch information
inxilpro committed Mar 18, 2024
1 parent 2d53e7e commit a9ae4bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Console/Commands/Make/MakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ protected function replaceClass($stub, $name)
$cli_name = Str::of($name)->classBasename()->kebab();

$find = [
"signature = 'command:name'",
"signature = 'app:{$cli_name}'",
"'command:name'",
"'app:{$cli_name}'",
];

$stub = str_replace($find, "signature = '{$module->name}:{$cli_name}'", $stub);
$stub = str_replace($find, "'{$module->name}:{$cli_name}'", $stub);
}

return $stub;
Expand Down

0 comments on commit a9ae4bf

Please sign in to comment.