Why migrate from Forge to Laravel Cloud?
No more server management: Cloud handles SSH, Nginx config, security patches, and server sizing, so you don't get paged at 2 a.m.
Autoscale and scale to zero: Unlike Forge's fixed-capacity servers, Laravel Cloud provisions replicas that scale up under load and down to zero when traffic drops. With scale to zero, your entire stack scales with it, including database, cache, and compute, so you never pay for idle resources.
Laravel Valkey, WAF and DDoS protection, and WebSockets ship built in: there's nothing extra to add on or spin up yourself.
Managed queues: Queue workers that scale with demand replace background processes and cost nothing when idle.
faster requests
to migrate
smaller replicas
“Even as a new Cloud user, it was easier and faster for me to set up apps on Cloud than it was on Forge, even though I'm a long-time Forge user.”

Dan Harrin
Filament's Co-Creator
Prerequisites
- SSH access to your Forge server (or database credentials from your
.env/ Forge environment panel) - Git repository connected to a supported provider (GitHub, GitLab, or Bitbucket)
- DNS management access for your domain
- A Laravel Cloud account
Laravel Forge to Cloud: Migration steps
Set up Laravel Cloud account
Create your account and set up your organization. Have questions? Check our Laravel Cloud Quickstart documentation.
Create your new application
- From your Cloud dashboard, click + New application.
- Connect your Git provider (GitHub, GitLab, or Bitbucket).
- Select your repository and branch.
- Configure your environment settings:
- Choose a supported PHP version.
- Set environment variables (copy from your Forge
.env). - Add any secrets your application needs.
Provision your infrastructure
Create the resources your application needs.
Laravel MySQL or Serverless Postgres database
- In your environment's infrastructure canvas, add a database.
- Choose Laravel MySQL or Serverless Postgres to match your Forge configuration. Managed AWS RDS databases are also available on Laravel Private Cloud.
- Select compute size based on your needs.
- Enable the public endpoint for migration (you can disable it afterward).
- Laravel Cloud automatically configures Laravel environment variables.
Laravel Valkey for cache and session storage
- Add Redis-compatible Laravel Valkey to your infrastructure canvas. This replaces the Redis you ran on your Forge server. Fully managed AWS ElastiCache caches (both Valkey and Redis OSS) are also available on Laravel Private Cloud.
- Laravel Cloud automatically configures your environment variables.
Object storage (S3-compatible)
- Add object storage if you use file uploads.
- Update your
filesystems.phpconfiguration to use Laravel Object Storage.
If your Laravel Forge application stores files on the server's local disk, you'll also need to migrate that content to Cloud's object storage. The easiest way is to copy the files off your Forge server first, then upload them to your new bucket using one of these methods:
- Cyberduck: Connect directly to your Cloud bucket using the credentials from Resources → Object storage → View credentials. See the docs for a step-by-step setup.
- AWS CLI: Cloud's object storage is S3-compatible, so you can use
aws s3 syncwith a custom endpoint pointed at your bucket.
If you were already using S3 on Forge, you don't need to move your files. Update your environment variables to point to the new bucket.
Prepare to migrate
Unlike on Laravel Vapor or Heroku, your database runs on a server you control. There are two ways to export it.
Option A: Export from your Forge server via SSH
ssh forge@your-server-ipThen run mysqldump or pg_dump on the server and download the dump file.
Option B: Export directly from your local machine
If remote database access is enabled on your Laravel Forge server, run the export commands below from your local machine, pointing to your Forge server's IP address.
To find your credentials: Check the .env file on your Forge server, or go to the Forge dashboard and look under your site's environment variables panel.
For MySQL:
# From your local machine
mysqldump \
--host="forge-server-ip" \
--port="3306" \
--user="forge-db-username" \
--password="forge-db-password" \
--single-transaction \
--routines \
--triggers \
--events \
"forge-db-database" > "dump-file.sql"For Postgres:
# From your local machine
pg_dump \
-Fc \
-f "dump-file.bak" \
"postgresql://forge-db-username:forge-db-password@forge-server-ip:5432/forge-db-database"Import your database to Laravel Cloud
With your new Cloud database provisioned and public endpoint enabled:
Find your Laravel Cloud database credentials
- Cloud dashboard → Environment → Database → Connection details
- Credentials are also injected as environment variables.
For MySQL:
# From your local machine
mysql \
--host="cloud-db-host" \
--port="cloud-db-port" \
--user="cloud-db-username" \
--password="cloud-db-password" \
"cloud-db-database" < "dump-file.sql"For Postgres:
# From your local machine
pg_restore \
--clean \
--no-owner \
--no-acl \
--if-exists \
--dbname="postgresql://cloud-db-username:cloud-db-password@cloud-db-host:cloud-db-port/cloud-db-database" \
"dump-file.bak"Migrate files and object storage
- If you store uploads on the Forge server filesystem (common with Forge's default setup), copy your files to Cloud's object storage using S3-compatible tooling, then update
config/filesystems.phpto use Cloud's object storage driver. - If you're already on S3, update your environment variables to point at Laravel Object Storage. No code changes are required.
Test your Cloud deployment
Before switching DNS:
- Deploy your application: Click the Deploy button in Cloud.
- Verify deployment: Check the deployment logs for any errors.
- Test using the Cloud URL: Every environment gets a
.laravel.cloudURL. - Run smoke tests: Verify critical functionality works.
- Check background jobs: Ensure queues are processing correctly.
Switch DNS to Cloud
Once verified, point your domain to Laravel Cloud:
- In the Cloud dashboard, go to Domains and follow the custom domains guide.
- Cloud provides the DNS records (A/CNAME).
- Update your DNS provider with the new records.
- SSL certificates are automatically provisioned and renewed.
Disable public database endpoint (optional)
After migration is complete and stable:
- Disable the public endpoint on your Cloud database for security.
- Your application keeps access to it over the private network.
Common migration scenarios
Standard Laravel app
Forge: Web + database + Redis on one server
Laravel Cloud: MySQL/Postgres + Valkey + managed queues
API-only application
Forge: Separate web/database servers
Laravel Cloud: Postgres + Valkey
Multi-environment setup
Forge: Separate staging + production servers
Laravel Cloud: Environments in the same Cloud application
Multiple sites on one server
Forge: Multiple Forge sites
Laravel Cloud: Separate Cloud applications
Code changes required
When moving from Laravel Forge to Cloud, almost nothing changes:
- Background processes are replaced by managed queues. Queue workers are configured in the Cloud dashboard.
- Scheduler unchanged: Laravel's scheduler runs the same way on Cloud.
- Octane is optional: If you weren't running Octane on Forge, you can enable it as a dashboard toggle on Cloud.
- Filesystem: If you were using local disk storage on your Forge server, update
config/filesystems.phpto use Cloud's S3-compatible object storage. If you were already on S3, no change is required.
Rollback plan
Before migrating production:
- Keep your Forge server running until Cloud is fully validated.
- Test Cloud with real traffic using the
.laravel.cloudpreview URL. - Keep old DNS records documented for quick rollback if needed.
Post-migration optimization
After a successful migration:
- Configure autoscaling: Set appropriate min/max replicas based on your traffic patterns.
- Enable scale-to-zero compute: Use it for staging and low traffic environments so you pay nothing when your apps are idle.
- Set up managed queues: Replace background processes with Cloud's managed queues, which scale on demand and cost nothing when idle.
- Enable Octane: Toggle Octane on in the Cloud dashboard for additional speed gains.
- Use Cloud's built-in metrics: These will allow you to track CPU, memory, and request volume, and compare performance against your Forge baseline.
Your Laravel Forge to Cloud migration is now complete!
Migrating from Forge to Laravel Cloud gives you a cleaner workflow, fully managed infrastructure, and a platform that grows with your application.
With autoscaling, managed queues, hibernation, and production-grade security all built in, most applications can be migrated in under an hour. Everything you left behind was overhead, not code.
Sign up for Laravel Cloud or contact support for a complex migration.
Getting help
- Visit documentation
- Check Cloud's Quickstart documentation
- Migration assistance
- Contact support for complex migrations
What customers say
“Laravel Cloud brings more peace of mind than Forge. When I'm considering what infrastructure decisions I'm making, I'm trying to make safe bets, and Cloud felt like a safer bet.”

Dan Harrin
Filament's Co-Creator
Frequently asked questions.
Ready to focus on shipping?
Let's build the incredible together, with Laravel. Start now with $5 in usage credit.