Laravel Rust is still in beta, so the installer and the crate can change before 1.0. The steps below are the installation guide’s current contract.
You need Rust 1.99 or newer, Node.js (the LTS release), and Git. If Rust is missing, the guide uses rustup:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
On Windows, download the installer from rustup.rs. If Rust is already installed, rustup update moves you to the latest stable release.
The frontend of a new app is built with Node.js. Install the LTS build from the Node.js website if node is not already on your PATH.
Install the CLI, then check which laravel runs
On macOS and Linux:
curl -fsSL https://laravel.com/install.sh | sh
On Windows, in PowerShell:
powershell -ExecutionPolicy Bypass -c "irm https://laravel.com/install.ps1 | iex"
The installer puts laravel in ~/.laravel/bin and adds that directory to your PATH. Open a new terminal before you use it.
Laravel Herd and the older Composer-based installer also provide a laravel command. The binary you want prints a version that starts with Laravel CLI:
laravel --version
If it prints a different installer, another directory is ahead of ~/.laravel/bin. On macOS and Linux, which -a laravel lists every match. On Windows PowerShell, Get-Command laravel -All does the same. Move the PATH line the new installer added below any Herd or Composer entries in your shell profile (~/.zshrc or ~/.bashrc), or move %USERPROFILE%\.laravel\bin above those directories in the Windows user Path. If you no longer need the Composer installer, composer global remove laravel/installer removes it. Open a new terminal and check laravel --version again.
Create the app
laravel new asks which language you want. Choose Rust, or skip the question:
laravel new field-notes --rust
cd field-notes
The CLI creates .env, installs frontend dependencies, and compiles the app. It also generates APP_KEY. That key encrypts cookies and sessions, so leave it out of git. The library inside the project is always named app, whatever the directory is called, so imports look like use app::models::User. You may change the [package] name in Cargo.toml. Keep the [lib] name app. The directory-structure guide says Laravel and your tests find your code by that name.
A new app comes with Inertia, React, TypeScript, Tailwind, and Vite Plus. You will use that stack in the pages course. This lesson only needs the process to boot.
Point it at a database
New applications default to PostgreSQL. The guide recommends developing against the same database you plan to run in production. A fresh .env looks like this:
DB_CONNECTION=postgres
DATABASE_URL=postgres://postgres@127.0.0.1/laravel
Create that database locally, or let migrate offer to create it. DBngin (macOS and Windows) and Postgres.app (macOS) are the installers the guide names if you do not have PostgreSQL yet.
SQLite is supported. In Cargo.toml, replace the database-postgres feature on laravel-rust with database-sqlite, then point .env at a file:
DB_CONNECTION=sqlite
DATABASE_URL=sqlite://storage/app/database.sqlite?mode=rwc
?mode=rwc tells SQLite to create the file on first connect. MySQL is the other documented swap: the database-mysql feature, plus a DATABASE_URL for that server. Migrations use one schema API across PostgreSQL, MySQL, MariaDB, and SQLite.
From the app directory:
laravel migrate
That creates the framework tables the starter ships with, including users, sessions, and queues.
Boot it
laravel dev
This starts the app, a queue worker, and Vite Plus. Open http://127.0.0.1:8000. Rust or .env changes rebuild and restart the process; the browser refreshes when the server is back. Frontend edits hot-reload while Vite is running. Template edits under resources/views/ refresh the page.
laravel route:list lists routes. laravel list lists commands. The CLI compiles first and shows compiler output when the build fails.
The starter answers health checks at /up with 200 after the app has started. The route is registered in src/app.rs:
.with_routing(|routing, _| {
routing
.web(routes::web::routes)
.api(routes::api::routes)
.health("/up");
})
Request http://127.0.0.1:8000/up and expect a successful response. Before any later deploy, the same guide says APP_ENV must be production and APP_DEBUG must be false. Debug mode renders the error, its causes, the route, and the request to anyone who can hit the server. Leave debug on only while you are on your own machine.
Check your work
Run laravel dev, open the welcome page, and request /up. Confirm laravel --version starts with Laravel CLI.