Ship Fast: Deploying Laravel Starter Kits to the Cloud
Overview
Modern web development demands speed without sacrificing architectural integrity. solves this by providing a friction-less deployment path for the new 12 starter kits. This guide demonstrates how to move from a local laravel new command to a fully hosted environment in under five minutes, utilizing and for a robust, production-ready foundation.
Prerequisites
To follow this workflow, you need a basic understanding of and . Ensure you have the (v5.0+) and installed globally. You will also need a account to act as your source control provider for the cloud sync.
Key Libraries & Tools
- 12: The core framework providing the application backbone.
- : A full-stack framework for building dynamic interfaces without leaving PHP.
- : The official UI component library for Livewire starter kits.
- : A developer-focused testing framework used for quality assurance.
- : The hosting platform specifically optimized for Laravel applications.
Code Walkthrough
1. Project Initiation
Start by generating a fresh application with the starter kit flags. This command scaffolds authentication and the UI layer immediately.
laravel new ship-to-cloud --livewire --auth --pest
2. Local Development Orchestration
Instead of managing multiple terminal tabs, use the composer dev command. This single process manages the server, assets, and for real-time logging.
composer dev
3. Deployment Configuration
Once pushed to , connect the repository to the dashboard. Crucially, ensure your deployment settings include the migration flag to prepare your database on the first boot.
php artisan migrate --force
Syntax Notes
Notice the use of the --force flag in the migration command. In production environments, protects against accidental data loss by preventing migrations; the force flag overrides this safeguard for automated CI/CD pipelines. Additionally, 12 utilizes components which use a clean, declarative syntax like <x-layouts.app.sidebar /> to manage complex layouts.
Practical Examples
This setup is ideal for SaaS Prototyping. By creating a "New Feature" branch in , can automatically spin up a dedicated preview environment. This allows you to test database-heavy changes in isolation before merging into the main production branch.
Tips & Gotchas
When setting up multiple environments, remember that can share a single database cluster across different branches. However, you should create separate database names within that cluster to avoid schema collisions between your main and feature branches.
- 20%· products
- 16%· products
- 12%· products
- 8%· products
- 8%· companies
- Other topics
- 36%

Deploying a NEW Starter Kit to Laravel Cloud in 5 Minutes
WatchLaravel // 10:07
The official YouTube channel of Laravel, the clean stack for Artisans and agents. We will update you on what's new in the world of Laravel, from the framework to our products Cloud, Forge, and Nightwatch.