diff --git a/src/Illuminate/Foundation/Console/ModelMakeCommand.php b/src/Illuminate/Foundation/Console/ModelMakeCommand.php index 60efccc28d3a..70a38b00472a 100644 --- a/src/Illuminate/Foundation/Console/ModelMakeCommand.php +++ b/src/Illuminate/Foundation/Console/ModelMakeCommand.php @@ -44,7 +44,7 @@ public function fire() $this->createMigration(); } - if ($this->option('controller')) { + if ($this->option('controller') || $this->option('resource')) { $this->createController(); } }