Skip to content

Laravel guide

Laravel Deployment Checklist

Most Laravel deployment problems are not framework problems. They are environment, permissions, cache or migration problems that were not checked in the right order. This checklist keeps the release predictable.

Guide details

8 minute read
Updated 13 November 2026

This guide is general technical information. It is not a guarantee of a particular result on your hosting, data or project.

Discuss your project

Environment and configuration

Confirm the PHP version, required extensions and database version on the target server. Set the application key, environment name, debug mode, URL and mail settings in the environment file. Production should not run with debug mode enabled.

Keep credentials out of the repository and out of build artifacts. If the deployment uses a build step, make sure the environment is applied at runtime rather than baked into the image or bundle.

  • PHP version and extensions verified
  • APP_ENV, APP_DEBUG and APP_URL correct
  • Application key present and stable
  • Secrets stored in the environment, not Git

Migrations, caches and queues

Back up the database before running migrations. Review the migration for destructive changes and confirm the rollback path. Run migrations in a controlled step, not automatically on every request.

Clear and rebuild configuration, route and view caches in the correct order. Restart queue workers after deployment so they pick up new code. Confirm the scheduler is running if the application depends on it.

  • Database backup taken and verified
  • Migrations reviewed and run deliberately
  • Config, route and view caches rebuilt
  • Queue workers restarted and scheduler checked

Storage, permissions and HTTPS

Check that the storage and cache directories are writable by the web server without being world-writable. Confirm the storage link for public files, the upload limits and the maximum execution time for the operations the app performs.

HTTPS should be enforced, with a valid certificate and a redirect from HTTP. Set secure cookie flags, a sensible session lifetime and the security headers the application needs.

  • Storage and cache permissions correct
  • Public storage link and upload limits checked
  • HTTPS enforced with a valid certificate
  • Secure cookies and session settings

Post-deploy checks and rollback

Open the site, sign in, submit a form, load a page that uses the database and check the queue. Review the logs for errors and warnings. A deployment is not finished until the critical paths have been exercised in production.

Keep the previous release and a database backup available. Write down the rollback steps before they are needed. If the release cannot be rolled back safely, that is a deployment risk to resolve, not a detail to ignore.

  • Critical paths tested on the live server
  • Logs checked for errors and warnings
  • Previous release and backup retained
  • Rollback steps documented

Key takeaways

  • Check the environment before the code reaches the server.
  • Back up the database and review migrations before running them.
  • Restart queue workers and rebuild caches after deployment.
  • Test the critical paths in production and keep a rollback path.

Need help

Related services.

Questions

About this guide.

Can Laravel run on shared hosting?

It can when the host provides the required PHP version, extensions and database. Queue workers, cron jobs and deployment automation may need adjustments, so the host should be reviewed before the build.

Should migrations run automatically on deploy?

Only when the deployment process is designed for it and destructive changes are handled carefully. For many projects, a deliberate migration step with a backup is safer.

Why do queue jobs fail after deployment?

Queue workers keep the old code in memory until they are restarted. Restarting workers after deployment is a standard part of the release process.

Next step

Tell me what you are building, and what is getting in the way.

A short brief is enough to start. You will get clear questions, a practical scope and an honest answer about fit.

A small note about cookies

Essential storage keeps preferences and security working. Analytics stays off unless you allow it and a measurement ID has been configured. Read the cookie policy.