Skip to content

Commit

Permalink
add auto named
Browse files Browse the repository at this point in the history
  • Loading branch information
mahmoud Ibrahim committed Aug 15, 2024
1 parent 087b7b4 commit df75301
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"extra": {
"branch-alias": {
"dev-master": "1.0.16.x-dev"
"dev-master": "1.0.17.x-dev"
},
"laravel": {
"providers": [
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/LynxGenerateController.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ protected function generateFile($type, $name, $module, $stubPath)
$namespace = $module ? 'Modules\\' . $module . '\App\Http\Controllers\Api' : 'App\Http\Controllers\Api';
$stub = file_get_contents(str_replace('\\', '/', $stubPath) . '/' . $type . '.stub');
$stub = str_replace('{{namespace}}', $namespace, $stub);
$stub = str_replace('{{class}}', $name, $stub);
$stub = str_replace('{{class}}', $name.'Controller', $stub);

// Add Model Namespace
if ($this->option('module')) {
Expand Down

0 comments on commit df75301

Please sign in to comment.