From 1a9bd15f77ff03e4345e6528d9511b844679fb8b Mon Sep 17 00:00:00 2001 From: Duilio Palacios Date: Thu, 16 Feb 2017 11:12:39 +0000 Subject: [PATCH] Simplify the command to generate resource controllers from make:model --- src/Illuminate/Foundation/Console/ModelMakeCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } }