Commit d44c435
Fix class name in generated class file. (#20961)
* Fix class name in generated class file.
If a class name used in a make commands starts with a slash the generated file will have the slash in the class name creating syntax error in class file. For example, artisan make modeld command (i.e. php artisan make:model \Foo) will generate file with the class name \Foo (i.e. class \Foo { ..... } ). Removing the beginning slash in the GeneratorCommand::qualifyClass() method will generate file will a valid class name.
* Update GeneratorCommand.php1 parent 3cd20ad commit d44c435
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
| 84 | + | |
83 | 85 | | |
84 | 86 | | |
85 | 87 | | |
| |||
0 commit comments