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 committed Feb 16, 2017
1 parent 2095064 commit e4ebe84
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 e4ebe84

Please sign in to comment.