Common deployment approaches include zero-downtime tools like Laravel Forge, Envoyer, or custom CI/CD pipelines that build releases in a new directory and atomically symlink them live. Migrations should run with --force in production (since artisan prompts for confirmation otherwise), and maintenance mode (php artisan down --secret=...) can gate access during risky deploys. Environment-specific configuration lives in .env, never committed to version control.
← Laravel theorytheory 0/50 · 0%
DevOps · hard
45. Deployment Strategies
Getting Laravel into production reliably.
Check your understanding
1. Why must migrations run with --force in production?
2. What does 'php artisan down --secret=xyz' enable?