Skip to main content
Select your framework to get started:

Prerequisites

  • Rust 1.99 or later, Node.js, and Git
  • The Laravel CLI, installed with curl -fsSL https://laravel.com/install.sh | sh
  • A GitHub, GitLab, or Bitbucket account
1

Create your application

Create a new Laravel Rust application with the Laravel CLI and commit it. Then, push it to a new repository on your Git provider:
2

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

3

Connect your Git provider

Select Continue with GitHub, 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.
4

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.
Laravel Cloud detects your application as a Laravel Rust application from the laravel-rust dependency in your Cargo.toml file, and generates an APP_KEY for the environment.
5

Review the build and deploy commands

Cloud pre-fills your build command to compile your frontend assets and your application:
Your start command runs your application’s binary, which is named after your application, such as /var/www/bin/example-app. Laravel Rust listens on the port Cloud provides, so there is nothing to configure.
6

Attach a database

New Laravel Rust applications use Postgres. Add a Serverless Postgres database from the infrastructure canvas. Cloud sets the DATABASE_URL environment variable and enables the deploy command that runs your migrations:
To use MySQL instead, enable the database-mysql Cargo feature first, as described in the Laravel Rust deploy guide.
7

Deploy

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