How to deploy a Laravel app to Cloud

Push to Git and ship a production-ready Laravel application in minutes without stitching together different services. Every building block is included and works together out of the box, including managed databases, WebSockets, queues, and infrastructure that scales to zero when idle.

Before you start

What your app needs

  • Laravel 9.x or greater (latest minor version of each release; see the deployments docs for exact minimums)
  • PHP 8.2, 8.3, 8.4, or 8.5 (PHP 8.5 is the default for new environments)
  • A Git repository on GitHub, GitLab, or Bitbucket
  • A Laravel Cloud account

What you do not need

  • A Dockerfile
  • A Procfile or buildpack configuration
  • A separate CI pipeline for deploys (though deploy hooks work if you already have one)
  • A separate database provider
  • A separate WebSocket provider
  • A certificate authority for TLS

Before you start

Frequently asked questions

Most first deploys take under 15 minutes end to end: connecting the repository, attaching a database and cache, setting environment variables, and running the first build. Subsequent deploys are typically a minute or two.

No. Cloud automatically detects a Laravel application in the repository and builds it for the PHP version you select. Frontend build commands and deploy commands live in your environment settings, not in a Procfile.

Every resource you attach on the infrastructure canvas has its credentials injected automatically as environment variables. Laravel picks them up on the next deploy. You do not paste connection strings into .env or config/database.php.

Queue workers run as managed queues by default: dedicated workers that scale with the backlog, including to zero when idle. Laravel's scheduler runs on Cloud unchanged and continues to fire even while your environment sleeps.

Yes. Preview environments provision a fully isolated stack for every pull request and tear it down when the PR merges or closes.

Cloud deploys Laravel, Symfony, Next.js, Nuxt, Ruby on Rails, Python (Django, Flask, and FastAPI), and Go, with Java (Spring Boot) support in progress. PHP, JavaScript (Node.js, Bun, Deno), Ruby, Python, Go, and Java runtimes are all supported.

Yes. Cloud has first-class monorepo support. Each application in a monorepo becomes a separate Cloud resource with its own environment, scaling, and domain, even when it shares a repository with other applications.

Autoscaling brings up additional replicas within the range you configure. Cloud's edge network absorbs the initial burst at the CDN layer and applies DDoS protection to suspicious traffic patterns.

Yes, through Laravel Private Cloud. Your applications deploy into a dedicated AWS account and VPC operated by Laravel, with private networking to your existing infrastructure. Suitable for regulated workloads, including HIPAA.

Cloud provisions a fully managed WebSocket cluster (powered by Laravel Reverb) as a resource on the infrastructure canvas. Server-side and frontend environment variables are injected automatically, so private channels, presence channels, and Laravel Echo work without external configuration.

Ready to focus on shipping?

Let's build the incredible together, with Laravel. Start now with $5 in usage credit.