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

[5.3] Use studly case for controller names #15988

Merged
merged 1 commit into from
Oct 18, 2016
Merged

[5.3] Use studly case for controller names #15988

merged 1 commit into from
Oct 18, 2016

Conversation

faustbrian
Copy link
Contributor

At the moment all controllers that will be generated with php artisan make:model Post --controller have lower-case first letters because camel-case is used, this should fix this.

// Current
$controller = Str::camel(class_basename($this->argument('name')));
// postController

// New
$controller = Str::studly(class_basename($this->argument('name')));
// PostController

@taylorotwell taylorotwell merged commit 8fb3cfe into laravel:5.3 Oct 18, 2016
@GrahamCampbell GrahamCampbell changed the title Use studly case for controller names [5.3] Use studly case for controller names Oct 18, 2016
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.

2 participants