Skip to content

Commit

Permalink
Update ModelMakeCommand.php
Browse files Browse the repository at this point in the history
  • Loading branch information
alex committed Oct 18, 2016
1 parent e5712a8 commit c24ae1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Illuminate/Foundation/Console/ModelMakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function fire()
if ($this->option('controller')) {
$controller = Str::studly(class_basename($this->argument('name')));

if ($this->option('controller_resource')) {
if ($this->option('resource')) {
$resource = true;
} else {
$resource = false;
Expand Down Expand Up @@ -90,7 +90,7 @@ protected function getOptions()

['controller', 'c', InputOption::VALUE_NONE, 'Create a new controller for the model.'],

['controller_resource', 'c_r', InputOption::VALUE_NONE,
['resource', 'r', InputOption::VALUE_NONE,
'Set is resource controller or no. If create a new controller for the model', ],
];
}
Expand Down

0 comments on commit c24ae1f

Please sign in to comment.