Artisan command help

To check the options of artisan command, Run artisan commands with --help flag. For example, php artisan make:model --help and see how many options you have:

1Options:
2 -a, --all Generate a migration, seeder, factory, and resource controller for the model
3 -c, --controller Create a new controller for the model
4 -f, --factory Create a new factory for the model
5 --force Create the class even if the model already exists
6 -m, --migration Create a new migration file for the model
7 -s, --seed Create a new seeder file for the model
8 -p, --pivot Indicates if the generated model should be a custom intermediate table model
9 -r, --resource Indicates if the generated controller should be a resource controller
10 --api Indicates if the generated controller should be an API controller
11 -h, --help Display this help message
12 -q, --quiet Do not output any message
13 -V, --version Display this application version
14 --ansi Force ANSI output
15 --no-ansi Disable ANSI output
16 -n, --no-interaction Do not ask any interactive question
17 --env[=ENV] The environment the command should run under
18 -v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Like our articles?

Become a Premium Member for $129/year or $29/month
What else you will get:
  • 22 courses (477 lessons, total 38 h 20 min)
  • 2 long-form tutorials (one new every week)
  • access to project repositories
  • access to private Discord