Ship Fast: Deploying Laravel Starter Kits to the Cloud
Overview
Modern web development demands speed without sacrificing architectural integrity. Laravel Cloud solves this by providing a friction-less deployment path for the new Laravel 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 Livewire and Flux UI for a robust, production-ready foundation.
Prerequisites
To follow this workflow, you need a basic understanding of PHP and Git. Ensure you have the Laravel Installer (v5.0+) and Composer installed globally. You will also need a GitHub account to act as your source control provider for the cloud sync.
Key Libraries & Tools
- Laravel 12: The core framework providing the application backbone.
- Livewire: A full-stack framework for building dynamic interfaces without leaving PHP.
- Flux UI: The official UI component library for Livewire starter kits.
- Pest: A developer-focused testing framework used for quality assurance.
- Laravel Cloud: 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 PHP server, Vite assets, and Laravel Pail for real-time logging.
composer dev
3. Deployment Configuration
Once pushed to GitHub, connect the repository to the Laravel Cloud 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, Laravel protects against accidental data loss by preventing migrations; the force flag overrides this safeguard for automated CI/CD pipelines. Additionally, Laravel 12 utilizes Flux UI 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 Git, Laravel Cloud 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 Laravel Cloud 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.
- Laravel Cloud
- 20%· products
- Laravel
- 16%· products
- Flux UI
- 12%· products
- Git
- 8%· products
- GitHub
- 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.