Show Menu
Cheatography

Laravel Cheat Sheet (DRAFT) by

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Composer commands

init create compos­er.json
install install depend­encies from compos­er.lock
update install depend­encies from compos­er.json
dump-a­utoload update autoloaded classes
require add package to compos­er.json
search <pa­cka­ge> search reposi­tories for matching packages
depends [--lin­k-t­ype­=re­qui­re|­req­uir­e-dev] <pa­cka­ge> list dependant packages
validate validate compos­er.json
global <co­mma­nd> run command in Composer home
show list all available packages
show <pa­cka­ge> show package details
create­-pr­oject <pa­cka­ge> create project based on package
status show local changes in depend­encies
config show and modify local or global Composer config
licenses list installed packages name, version and license
run-script run script manually
diagnose run Composer diagno­stics
archive <pa­cka­ge> <ve­rsi­on> --form­at=­[zi­p|tar] Archive package or project
self-u­pdate update Composer
help <co­mma­nd> show command inform­ation
 

Artisan commands

changes
tail --path­="<pa­th>"
env
down / up
help / list
tinker
optimize
routes
pcf:all
serve
workbench
auth:c­lea­r-r­emi­nders
auth:r­emi­nde­rs-­con­troller
auth:r­emi­nde­rs-­table
cache:­clear
comman­d:make
contro­lle­r:make
key:ge­nerate
migrate
migrat­e:i­nstall
migrat­e:make
migrat­e:r­efresh
migrat­e:reset
migrat­e:r­ollback
sessio­n-table
db:seed
queue:­failed
queue:­fai­led­-table
queue:­flush
queue:­forget
queue:­listen
queue:­retry
queue:­sub­scribe
queue:work
genera­te:­con­troller
genera­te:form
genera­te:­mig­ration
genera­te:­model
genera­te:­pivot
genera­te:­res­ource
genera­te:­sca­ffold
genera­te:seed
genera­te:test
genera­te:view