Why migrate from Laravel Vapor to Cloud?
Zero configuration: You don't need vapor.yml, the AWS console, or Lambda configuration.
Predictable performance: Kubernetes-based infrastructure eliminates cold starts.
Simpler pricing: Usage-based billing without AWS markup or surprise charges.
Faster deployments: Git push-to-deploy in under 60 seconds.
Built-in features: Edge caching, WAF, DDoS protection, Laravel Reverb-powered WebSockets, and scale to zero are included.
Fast migration: Standard Laravel apps can migrate in as little as 30 minutes.
“We are surprised by the difference in feel of the site. According to Nightwatch, we won <100 ms per request, but each page feels much snappier. The gain of 100 ms per call in multiple calls in a page only adds to that feeling.”

François-Alexandre Perreault
Solutions Architect at Pyle
Prerequisites
- Access to your current Vapor application and database
- Git repository connected to a supported provider (GitHub, GitLab, or Bitbucket)
- Database credentials for your existing Vapor MySQL/Postgres database
- DNS management access for your domain
- A Laravel Cloud account
Laravel Vapor to Cloud: Migration steps
Set up Laravel Cloud account
Create your account at cloud.laravel.com 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 the Vapor UI or .env).
- Add any secrets your application needs.
Provision your new infrastructure
Create the resources your application needs:
MySQL/Postgres database
- In your environment's infrastructure canvas, add a Database.
- Choose MySQL or Postgres (match your Vapor configuration).
- Select compute size based on your needs.
- Enable the public endpoint for the migration (you can disable it afterward).
- Cloud automatically configures Laravel environment variables.
Laravel Valkey for cache and session storage
- Add Redis-compatible Laravel Valkey to your infrastructure canvas. This replaces your Vapor cache cluster. 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.php configuration to use the Laravel Object Storage.
You've set up your Laravel Cloud account and provisioned the infrastructure. Now you can migrate your Vapor application to Cloud.
Prepare to migrate
- Log in to your Vapor account.
- Get your Vapor database credentials:
- Check Vapor dashboard → Project → Environment → Database
- Or check your Vapor environment variables
Migrate your database
With your new Cloud database provisioned and public endpoint enabled:
Find your Cloud database credentials
- Cloud dashboard → Environment → Database → Connection Details
- Credentials are also injected as environment variables
For MySQL
Export from Vapor
# From your local machine
mysqldump \
--host="vapor-db-host" \
--port="vapor-db-port" \
--user="vapor-db-username" \
--password="vapor-db-password" \
--single-transaction \
--routines \
--triggers \
--events \
"vapor-db-database" > "dump-file.sql"Import to Cloud
# 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
Export from Vapor
# From your local machine
pg_dump \
-Fc \
-f "dump-file.bak" \
"postgresql://vapor-db-username:vapor-db-password@vapor-db-host:vapor-db-port/vapor-db-database"Import to Cloud
# 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"At this point, you are ready to deploy your application to Cloud by hitting the "Deploy" button. Follow the next steps to test whether everything is working correctly.
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.cloud URL.
- 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 Cloud:
- In the Cloud dashboard, go to Domains and add your custom domain.
- 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.
End your Vapor subscription
Once you've successfully deployed and tested your application, don't forget to cancel your Vapor subscription. If you were only using AWS for the application you migrated to Cloud, you can also close your AWS account since no third-party infrastructure providers are needed with Cloud.
Common migration scenarios
Standard Laravel app
Vapor: MySQL + Redis + S3 assets + queues
Laravel Cloud: MySQL database + Valkey + object storage + managed queues for automatic scaling
API-only application
Vapor: Aurora Serverless + ElastiCache
Laravel Cloud: Postgres database + Valkey
Multi-environment setup
Vapor: Production + staging environments
Laravel Cloud: Separate environments in the same application
Code changes required
Minimal changes needed
Most Laravel applications require zero code changes to migrate from Vapor to Cloud.
Storage configuration
If you use Vapor's S3 direct uploads, update to Cloud's object storage:
// config/filesystems.php - usually no changes needed
's3'=>[
'driver'=>'s3' ,
'key'=>env('AWS_ACCESS_KEY_ID'),
'secret'=>env('AWS_SECRET_ACCESS_KEY'),
'region'=>env('AWS_DEFAULT_REGION'),
'bucket'=>env('AWS_BUCKET'),
// Cloud injects these automatically
],Scheduler configuration
On Vapor, the scheduler is invoked exactly once every 60 seconds, so your scheduler runs never overlap. On Cloud, your scheduler can run across multiple compute instances, meaning your scheduler could fire on every one of them.
Before you deploy, review your routes/console.php (or app/Console/Kernel.php) and add ->onOneServer() to any task that should only run once per schedule, such as reports, cleanup jobs, or anything that writes to your database or sends notifications.
use Illuminate\Support\Facades\Schedule;
Schedule::command('reports:generate')
->daily()
->onOneServer();This uses your cache to coordinate between instances, so make sure you have a Valkey cache provisioned. For more details, see the Laravel scheduler documentation.
Remove Vapor-specific code
You can remove the laravel/vapor-core package:
composer remove laravel/vapor-coreRemove any Vapor-specific middleware or configuration from your application, as well as the vapor.yml file.
Rollback plan
Before migrating production:
Create your new application
- Keep Vapor running: Don't shut it down until Cloud is fully validated.
- Parallel run: Test Cloud with real traffic using the Cloud URL.
- Database sync: If needed, you can sync databases before final cutover.
- DNS rollback: Keep old DNS records documented for quick rollback.
Post-migration optimization
After successful migration:
1. Configure autoscaling
Set appropriate min/max replicas based on your traffic patterns.
2. Enable scale to zero
Use it for staging and low-traffic environments so you pay nothing when they're idle.
-
3. Set up managed queues
Use Cloud's managed queues for background jobs.
4. Monitor performance
Use Cloud's built-in metrics to optimize compute resources.
-
5. Review costs
Compare your Cloud usage costs to previous Vapor + AWS bills.
Your Laravel Vapor to Cloud migration is now complete!
Migrating from Laravel Vapor to Cloud gives you a cleaner workflow, faster deployments, and predictable performance without the overhead of managing AWS services.
With zero-config environments, autoscaling, and a straightforward infrastructure model, most applications can be migrated in under an hour.
By following the steps in this guide, you can transition smoothly and start taking advantage of Laravel Cloud's simpler, more cost-effective platform.
Getting help
- Visit documentation
- Check Cloud's Quickstart documentation
- Migration assistance
- Contact support for complex migrations
What customers say
“We ran our own Kubernetes cluster. That was a full-time job for two people. It really took a lot of your energy. It's great to have people who are absolute experts on this.”

Alex Millar
Co-founder at GovAI
Frequently asked questions.
Ready to focus on shipping?
Let's build the incredible together, with Laravel. Start now with $5 in usage credit.