Skip to content

Commit

Permalink
Use studly case for controller names (#15988)
Browse files Browse the repository at this point in the history
  • Loading branch information
faustbrian authored and taylorotwell committed Oct 18, 2016
1 parent 4506a10 commit 8fb3cfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Foundation/Console/ModelMakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function fire()
}

if ($this->option('controller')) {
$controller = Str::camel(class_basename($this->argument('name')));
$controller = Str::studly(class_basename($this->argument('name')));

$this->call('make:controller', ['name' => "{$controller}Controller", '--resource' => true]);
}
Expand Down

0 comments on commit 8fb3cfe

Please sign in to comment.