Cheatography
https://cheatography.com
Laravel 6 Artisan commands
Options
-h, --help
|
Display the Artisan help |
-q, --quiet
|
Do not output any message |
-n, --no-interaction
|
Do not ask any interactive question |
--env[=ENV]
|
The environment the comment should run under |
-v|vv|vvv
|
Increase verbosity of messages |
General commands
clear-compiled
|
Remove compiled class file |
down
|
Turn on maintenance mode |
env
|
Display current environment |
help
|
Display help for a command |
inspire
|
Display inspiring quote |
list
|
Lists commands |
migrate
|
Run database migrations |
optimize
|
Cache bootstrap files |
preset
|
Swap front-end scaffolding |
serve
|
Serve application on PHP dev server |
tinker
|
Interact with your application |
up
|
Turn off maintenance mode |
Auth
auth:clear-resets
|
Flush expired password reset tokens |
Cache
cache:clear
|
Flush application cache |
cache:forget
|
Remove item from cache |
cache:table
|
Create a migration for the cache table |
Clean
clean:events
|
Cleanup events |
Config
config:cache
|
create configuration cache |
config:clear
|
clear configuration cache |
db
db:seed
|
Seed the database |
db:wipe
|
Drop all tables,views and types |
event
event:cache
|
cache all events and listeners |
event:clear
|
clear cached events and listeners |
event:generate
|
generate missing events and listeners |
event:list
|
list events and listeners |
|
|
key
key:generate
|
Generate and set the application key |
make
make:channel
|
New channel class |
make:command
|
New Artisan command |
make:controller
|
New controller class |
make:event
|
New event class |
make:exception
|
New exception class |
make:factory
|
Create a new model factory |
make:job
|
New job class |
make:listener
|
New event listener class |
make:mail
|
New email class |
make:middleware
|
New middleware class |
make:migration
|
New migration file |
make:model
|
New Eloquent model class |
make:notification
|
New notification class |
make:observer
|
New observer class |
make:policy
|
New policy class |
make:provider
|
New service provider class |
make:request
|
New form request class |
make:resource
|
New resource |
make:rule
|
New validation rule |
make:seeder
|
New seeder class |
make:test
|
New test class |
Migrate
migrate:fresh
|
Drop tables and re-run migrations |
migrate:install
|
Create migration repository |
migrate:refresh
|
Rollback and re-run all migrations |
migrate:reset
|
Rollback all migrations |
migrate:rollback
|
Rollback the last migration |
migrate:status
|
Show the status of each migration |
|
Created By
Metadata
Favourited By
Comments
No comments yet. Add yours below!
Add a Comment
Related Cheat Sheets