How to see all of the options for an artisan command?

Laravel: How to see all of the options for an artisan command?

Just enter --help to the end of a command to see its help.

php artisan make:controller --help

Description:
  Create a new controller class

Usage:
  make:controller [options] [--] <name>

Arguments:
  name                   The name of the class

Options:
  -m, --model[=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[=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, --version          Display this application version
      --ansi             Force ANSI output
      --no-ansi          Disable ANSI output
  -n, --no-interaction   Do not ask any interactive question
      --env[=ENV]        The environment the command should run under
  -v|vv|vvv, --verbose   Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
webdevetc profile pic
webdevetc

I am a 29 year old backend web developer from London, mostly focusing on PHP and Laravel lately. This (webdevetc.com) is my blog where I write about some web development topics (PHP, Laravel, Javascript, and some server stuff). contact me here.



More...


Comments and discussion about How to see all of the options for an artisan command?

Found this interesting? Maybe you want to read some more in this series?

Or see other topics in the Laravel language

Or see other languages/frameworks:
PHP Laravel Composer Apache CentOS and Linux Stuff WordPress General Webdev and Programming Stuff JavaScript
Or see random questions

What does 'final class' and 'final function' (final method) mean in PHP?

How to find out which php.ini file PHP is using?

What is Agile software development?

How to split a string into an array, in JS

Why should you update APP_URL from from http://localhost?

How to remove .php from the end of URLs with .htaccess

How to select all rows for a certain month (or day, year or time), using Eloquent

How to enable the rewrite engine in .htaccess?

How do you access the php://input stream?

How to make multiple routes share the same URL structure or URL parameters