Laravel Rust is in beta and offers a way to start a Rust application without setting up the router, ORM, authentication, and queues separately. The project is built on Axum and Tokio; Laravel brings conventions and integrated tools, as well as compatibility with Inertia for React, Vue, and Svelte.
This guide covers only the startup workflow published by Laravel: prepare the environment, create the project, configure a database, and run migrations and local services. The framework's interfaces may change before version 1.0, so it's worth consulting the installation documentation linked to the version you plan to use.
We're sort of post-programming language. Developers can write in any language they want with ease. Even the teams that we have at Laravel internally are no longer writing just PHP. We're writing Go, we're writing Rust, we're writing a variety of other languages thanks to AI.
— Taylor Otwell, creator of Laravel
1. Check the requirements
Laravel lists Rust 1.99 or later, Node.js, and Git as requirements. You also need to install the new Laravel CLI by following the instructions for your operating system. The specific installation method depends on those instructions, so it's best not to replace it with a generic installation command.
Before creating anything, check that the basic tools are available in the terminal. These commands check their versions; they do not install or modify packages.
rustc --version
node --version
git --version
laravel --version
The last check assumes that you've already installed the CLI according to the official guide. If the command isn't recognized, return to the installation steps for your operating system instead of continuing with a different executable.
2. Generate the project
The CLI creates a Rust application with the --rust option. The official example uses example-app as the project name; you can keep it or replace it with the name you want to use.
laravel new example-app --rust
Project creation prepares the application, installs the frontend dependencies, and compiles the project. New applications use Inertia with React, TypeScript, Tailwind, and Vite Plus, according to the Laravel News description. You don't need to add a template or frontend client separately to get this initial configuration.
The structure includes application and frontend components, as well as instructions intended for coding agents. The project repository shows, among other elements, directories such as src, database, resources, and tests, and files such as AGENTS.md and CLAUDE.md.
3. Enter the directory
Once generation is complete, go to the project folder. Run the command from the same terminal environment where you launched the CLI.
cd example-app
The project has already been compiled during creation, but you still need to configure the database before running migrations. Laravel Rust supports PostgreSQL, MySQL, and SQLite; your choice and connection settings must match the instance you plan to use.
4. Configure the database and run migrations
Configure the connection using the Laravel Rust installation guide and the database engine you've chosen. Then run migrations with the documented command. The exact configuration depends on the database: don't assume credentials, variable names, or a connection string that is common to all three engines.
laravel migrate
Migrations prepare the schema defined by the application. If the command fails, first check that the database exists, is available, and has matching connection details. The framework provides migrations and database tools; the initial configuration is detailed in its installation guide.
5. Start the local environment
With the database configured and migrations run, start the development environment:
laravel dev
A single command starts several processes: the application, the queue worker, and the frontend development server. This lets you test the integrated setup without starting each component with separate commands.
The workflow is: install the tools, generate the application, enter the directory, configure the database, run migrations, and start the local environment. In the documented startup process, laravel new also prepares dependencies and compiles the project.
flowchart TD
A["Install tools"] --> B["Create app with CLI"]
B --> C["Enter the project"]
C --> D["Configure database"]
D --> E["Run migrations"]
E --> F["Start local environment"]What the scaffold offers
The offering goes beyond startup. Laravel describes models and queries with type checking, routing, validation, authentication, authorization, middleware, sessions, migrations, and queues. Queries that are incompatible with a column's type can fail during compilation, before they run against the database.
For the interface, Inertia lets you return React, Vue, or Svelte pages with props from Rust handlers. Laravel also describes deferred props, which let you display a page while slower queries complete, and live props that can update values through WebSockets. These are framework capabilities, not steps required to start the project.
Queues support database, Redis, and Amazon SQS backends, with retries and backoff. The workflow system can save step results and resume processes after deployments or worker restarts; it also supports waits and external webhooks within an asynchronous function.
Common mistakes when getting started
Don't skip database configuration: the migration command needs a prepared connection. The framework supports PostgreSQL, MySQL, and SQLite, but that doesn't mean a newly created application automatically has access to a running instance.
Another pitfall is treating the beta as a stable interface. Laravel warns that releases before 1.0 may change APIs and configuration. If an example you find elsewhere doesn't match your project, first check the documentation for the installed version instead of copying function or file names from another revision.
Finally, keep in mind that compilation may take longer than in PHP. Laravel reported a median of about three minutes for a cold compilation in Cloud, compared with 27 seconds for Laravel PHP; these figures are for that environment, not a promise about local compilation time.
With the application generated, the database migrated, and laravel dev running, you have the documented starting point. Laravel Rust is still in beta: consult its installation guide before depending on a specific API in your code.
Sources: Laravel News, Laravel, GitHub, SiliconANGLE