Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[8.x] GeneratorCommand class name StudlyCaps #37322

Closed
wants to merge 2 commits into from
Closed

[8.x] GeneratorCommand class name StudlyCaps #37322

wants to merge 2 commits into from

Conversation

sebastien-vedrine
Copy link

According to the PSR-4 standard, class names should be StudlyCaps.

Right now if we create a controller using the make:controller command and a snake cased name, the generated class won't be valid.

image

I think it should either throw an exception or convert the class name to pascal case.

@taylorotwell
Copy link
Member

Just provide the name in the correct format.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants