Artisan is Laravel's built-in CLI tool. It provides dozens of helpful commands for generating code, managing the database, running queues, and more.
// Show all available commands
php artisan list
// Display help for a command
php artisan help make:model
// Environment & Config
php artisan env
php artisan config:cache
php artisan config:clear
php artisan route:cache
php artisan route:list
php artisan make:model Post -mfsc // model + migration + factory + seeder + controller
php artisan make:controller PostController --resource
php artisan make:request StorePostRequest
php artisan make:middleware CheckAge
php artisan make:event OrderShipped
php artisan make:job ProcessPodcast
php artisan make:mail WelcomeMail
php artisan make:notification InvoicePaid
php artisan make:policy PostPolicy --model=Post
php artisan make:test PostControllerTest --feature
php artisan migrate
php artisan migrate:rollback
php artisan migrate:fresh --seed
php artisan db:seed --class=PostSeeder
php artisan db:wipe
// Take app offline
php artisan down --render="errors::503" --retry=60
// Allow specific IPs through
php artisan down --allow=192.168.1.1
// Bring app back online
php artisan up