Skip to content

Commit

Permalink
Simplify the command to generate resource controllers from make:model (
Browse files Browse the repository at this point in the history
  • Loading branch information
sileence authored and taylorotwell committed Feb 16, 2017
1 parent 49869fa commit 48e6c09
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()
$this->createMigration();
}

if ($this->option('controller')) {
if ($this->option('controller') || $this->option('resource')) {
$this->createController();
}
}
Expand Down

0 comments on commit 48e6c09

Please sign in to comment.