Skip to content

Commit

Permalink
[6.x] Controller stub from make:model --api missing model typehint (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
crynobone authored and taylorotwell committed Jan 24, 2020
1 parent 104c539 commit 6f59618
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 @@ -126,7 +126,7 @@ protected function createController()

$this->call('make:controller', array_filter([
'name' => "{$controller}Controller",
'--model' => $this->option('resource') ? $modelName : null,
'--model' => $this->option('resource') || $this->option('api') ? $modelName : null,
'--api' => $this->option('api'),
]));
}
Expand Down

0 comments on commit 6f59618

Please sign in to comment.