php artisan make:controller
Create a new controller class
Usage
make:controller [-m|--model [MODEL]] [-r|--resource] [-i|--invokable] [-p|--parent [PARENT]] [--api] [--] <name>
Arguments
name The name of the class
Options
-m, --model Generate a resource controller for the given model.
-r, --resource Generate a resource controller class.
-i, --invokable Generate a single method, invokable controller class.
-p, --parent Generate a nested resource controller class.
--api Exclude the create and edit methods from the controller.
-h, --help Display this help message
-q, --quiet Do not output any message
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
-V, --version Display this application version
--ansi Force ANSI output
--no-ansi Disable ANSI output
-n, --no-interaction Do not ask any interactive question
--env The environment the command should run under