Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[8.x] New flag --requests -R to make:controller and make:model Commands #39120

Merged
merged 11 commits into from
Nov 5, 2021
Prev Previous commit
Next Next commit
Accept -R as a short flag for --requests
PovilasKorop committed Oct 7, 2021
commit 09e973b7f30ad2a3c6dd266bd8b24565e8063e1f
2 changes: 1 addition & 1 deletion src/Illuminate/Routing/Console/ControllerMakeCommand.php
Original file line number Diff line number Diff line change
@@ -248,7 +248,7 @@ protected function getOptions()
['model', 'm', InputOption::VALUE_OPTIONAL, 'Generate a resource controller for the given model.'],
['parent', 'p', InputOption::VALUE_OPTIONAL, 'Generate a nested resource controller class.'],
['resource', 'r', InputOption::VALUE_NONE, 'Generate a resource controller class.'],
['requests', null, InputOption::VALUE_NONE, 'Generate FormRequest classes for store and update.'],
['requests', 'R', InputOption::VALUE_NONE, 'Generate FormRequest classes for store and update.'],
];
}
}