Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.php
- Loading branch information