Skip to main content
Select your framework to get started:

Prerequisites

1

Go to your main Laravel Cloud dashboard page and select + New application.

2

Connect your Git provider

Select Connect to GitHub (or GitLab or Bitbucket). A new tab or window opens. Sign in to your Git provider and select the user or organization and the repositories you want to give Laravel Cloud access to.
After you complete the Git provider authentication flow, your Git provider redirects you back to Laravel Cloud.
3

Create a new application

Select the repository you want to use, name your Laravel Cloud application, and select a Region where your application will deploy. Then, click Create Application.
Laravel Cloud creates your application along with a default environment. It then takes you to your application’s default environment overview page.
4

Select the PHP runtime

In your environment settings, confirm the runtime is set to PHP and select the PHP version that matches your application’s requirements.
5

Set build and deploy commands

Set your build command to install dependencies and compile assets:
Set your deploy command to run database migrations on each deployment:
6

Add environment variables

At minimum, set your APP_KEY. You can generate one locally and paste the value into the Laravel Cloud dashboard:
If your application uses a database, connect a MySQL or Postgres resource from the infrastructure canvas. Laravel Cloud automatically injects the connection environment variables.
7

Deploy

Click the Deploy button. Laravel Cloud builds your application, runs your deploy command, and routes traffic to the new instance.
Congratulations! Your Laravel application is live on Laravel Cloud! Continue with the Laravel deploy guide to make it production-ready, or read about environments, databases, managed queues, and more.