Laravel Cheatsheet - Laravel Artisan Command Reference
This reference is for developers building Laravel applications and the people deploying them, centering on Artisan, the CLI you run constantly. It covers scaffolding a project, generating models/controllers/migrations, running and rolling back migrations, boosting production with route/config/view caching, and handling background work with the queue. Unlike a generic Artisan command dump, entries are grouped by the workflow you actually repeat: create feature → migrate DB → run locally → cache for prod → queue the heavy work. After reading, you should be able to scaffold a CRUD feature, apply and roll back migrations cleanly, and be confident about what each cache command commits or clears.
Project & Dev 10
laravel new projectphp artisan servephp artisan make:model Post -mcrphp artisan make:migration create_posts_tablephp artisan make:controller PostControllerphp artisan make:middleware CheckAgephp artisan make:request StorePostRequestphp artisan make:job ProcessPodcastphp artisan make:event PodcastProcessedphp artisan make:listener SendNotificationDatabase 8
php artisan migratephp artisan migrate:freshphp artisan migrate:rollbackphp artisan migrate:statusphp artisan db:seedphp artisan db:seed --class=UserSeederphp artisan make:seeder UserSeederphp artisan make:factory PostFactoryRoutes & Cache 9
php artisan route:listphp artisan route:cachephp artisan route:clearphp artisan config:cachephp artisan config:clearphp artisan view:cachephp artisan view:clearphp artisan optimizephp artisan optimize:clearQueues & Jobs 7
php artisan queue:workphp artisan queue:work --queue=high,defaultphp artisan queue:restartphp artisan queue:failedphp artisan queue:retry <id>php artisan queue:flushphp artisan make:job ProcessPodcastTesting & Debug 6
php artisan testphp artisan test --filter=UserTestphp artisan tinkerphp artisan downphp artisan upphp artisan storage:linkTips
- In production always run php artisan optimize to cache config and routes.
- make:model -mcr generates model+migration+resource controller at once.
- Run queue workers under Supervisor to avoid unexpected exits.
Official References
Each command links to its official documentation below, so you can verify the latest usage and read deeper.
Maintained by LaoHand
Publicly updated on Jul 21, 2026, continuously proofread against official docs.
Contact Us
Wrong command or description? Send us corrections, business inquiries or product feedback by email.
Contact Us