Skip to content

Commit 93ed7f4

Browse files
Specify that make:model --api command creates a resource controller (#43793)
1 parent e57fd4d commit 93ed7f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Foundation/Console/ModelMakeCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ protected function getOptions()
228228
['seed', 's', InputOption::VALUE_NONE, 'Create a new seeder for the model'],
229229
['pivot', 'p', InputOption::VALUE_NONE, 'Indicates if the generated model should be a custom intermediate table model'],
230230
['resource', 'r', InputOption::VALUE_NONE, 'Indicates if the generated controller should be a resource controller'],
231-
['api', null, InputOption::VALUE_NONE, 'Indicates if the generated controller should be an API controller'],
231+
['api', null, InputOption::VALUE_NONE, 'Indicates if the generated controller should be an API resource controller'],
232232
['requests', 'R', InputOption::VALUE_NONE, 'Create new form request classes and use them in the resource controller'],
233233
];
234234
}

0 commit comments

Comments
 (0)