Artisan cheat sheet
-
Available commands
- changes - Display the framework change list
- clear-compiled - Remove the compiled class file
- down - Put the application into maintenance mode
- dump-autoload - Regenerate framework autoload files
- env - Display the current framework environment
- help - Displays help for a command
- list - Lists commands
- migrate - Run the database migrations
- optimize - Optimize the framework for better performance
- routes - List all registered routes
- serve - Serve the application on the PHP development server
- tail - Tail a log file on a remote server
- tinker - Interact with your application
- up - Bring the application out of maintenance mode
- workbench - Create a new package workbench
-
asset
- asset:publish - Publish a package's assets to the public directory
-
auth
- auth:clear-reminders - Flush expired reminders.
- auth:reminders-controller - Create a stub password reminder controller
- auth:reminders-table - Create a migration for the password reminders table
-
cache
- cache:clear - Flush the application cache
- cache:table - Create a migration for the cache database table
-
command
- command:make - Create a new Artisan command
-
config
- config:publish - Publish a package's configuration to the application
-
controller
- controller:make - Create a new resourceful controller
-
db
- db:seed - Seed the database with records
-
key
- key:generate - Set the application key
-
migrate
- migrate:install - Create the migration repository
- migrate:make - Create a new migration file
- migrate:publish - Publish a package's migrations to the application
- migrate:refresh - Reset and re-run all migrations
- migrate:reset - Rollback all database migrations
- migrate:rollback - Rollback the last database migration
-
queue
- queue:failed - List all of the failed queue jobs
- queue:failed-table - Create a migration for the failed queue jobs database table
- queue:flush - Flush all of the failed queue jobs
- queue:forget - Delete a failed queue job
- queue:listen - Listen to a given queue
- queue:restart - Restart queue worker daemons after their current job.
- queue:retry - Retry a failed queue job
- queue:subscribe - Subscribe a URL to an Iron.io push queue
- queue:work - Process the next job on a queue
-
session
- session:table - Create a migration for the session database table
-
view
- view:publish - Publish a package's views to the application