Laravel Rust: what it is, how to install it and what it means for PHP

Marcos Marcolin • December 1, 2026 • 15 min read

PHP AI Open Source

Today, December 1st, 2026, Taylor Otwell announced the first beta of Laravel Rust, also called Laravel for Rust in the documentation. It is not a package, and it is not a Rust extension to speed up the Laravel we know. It is a new framework, written in Rust, with routing, validation, models, queues, mail, broadcasting, Inertia and testing.

The news is big on its own. But what caught my attention the most was not the framework. It was how it was built: in two months, with heavy use of AI agents. In this post I go through what was released, show how to install it, take a careful look at the benchmark and then talk about what this says about AI and about the future of people who work with PHP.

Quick summary

Table of contents

What is Laravel Rust

The announcement describes Laravel Rust as "not a blind port of Laravel to Rust", but Laravel reimagined in idiomatic Rust. Under the hood it uses Axum and Tokio, so everything is asynchronous: HTTP handlers, queries, the HTTP client, Redis, queues and WebSockets. The application compiles to a single binary, with the migrations built in.

What ships in this first beta:

The documentation already has almost 70 guides, also covering authentication, authorization, cache, task scheduling, notifications, storage and package development. According to Taylor, the framework is "near feature parity" with Laravel PHP, and the remaining gaps will be closed in the coming weeks. The announcement does not list those gaps.

Laravel PHP vs Laravel Rust

Laravel PHP Laravel Rust
Language PHP Rust 1.99+
Execution Interpreted, with PHP-FPM or Octane Single native binary
Concurrency One worker per request on PHP-FPM Asynchronous, with Tokio
Column, relationship and authorization errors At runtime or with static analysis At compile time
Models Eloquent, with lazy loading Structs with #[model], no lazy loading
Templates Blade Views with Jinja syntax
Default frontend Starter kits Inertia, React, TypeScript and Tailwind
CLI php artisan laravel
Maturity 15 years in production Beta 0.x
License MIT MIT

How to install Laravel Rust

You need Rust 1.99 or later, Node.js (the frontend is built with it) and Git. If you do not have Rust yet, install it with rustup:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Then install the new Laravel CLI. 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 the laravel command in ~/.laravel/bin. There is a catch here for people who already use Laravel PHP: Laravel Herd and the older Composer-based installer also provide a laravel command. Run laravel --version and check that the output starts with Laravel CLI. If it does not, use which -a laravel to see which binary comes first on your PATH.

With the CLI in place, create the application and start the environment:

laravel new example-app --rust
cd example-app
laravel migrate
laravel dev

laravel new downloads the project, creates the .env file, installs the frontend dependencies and compiles it. The new application comes with Inertia, React, TypeScript and Tailwind, and uses PostgreSQL by default. To switch to SQLite or MySQL, you change a feature of the laravel-rust crate in Cargo.toml and the DATABASE_URL in .env.

laravel dev starts the server, a queue worker and Vite all at once, at http://127.0.0.1:8000. When you change your Rust code, the application rebuilds and restarts on its own.

For production, the path is to build in release mode and run the binary:

cargo build --release
npm run build
./target/release/example-app

Besides the binary, the server needs the public/, resources/views/ and storage/ directories. There is no PHP-FPM, no Composer on the server, no OPcache to warm up.

What the code looks like

Anyone who has used Laravel will recognize the structure. Routes live in src/routes/web.rs:

// src/routes/web.rs
use laravel::prelude::*;

use crate::http::handlers::posts;
use crate::models::User;

pub fn routes(route: &mut Router) {
    route.get("/greeting", async || "Hello World");

    route.get("/users/{user}", async |user: User| user.name);

    route.get("/posts", posts::index);
    route.get("/posts/{post}", posts::show);
    route.post("/posts", posts::store);
}

The part I found most interesting is validation. What would be a FormRequest in PHP becomes a struct:

// src/http/handlers/posts.rs
#[laravel::input(fills = Post)]
#[validate(authenticated)]
pub struct StorePost {
    #[validate(required, max_length = 255, unique(Post::title))]
    pub title: String,
    #[validate(required)]
    pub body: String,
}

pub async fn store(
    Authenticated(user): Authenticated<User>,
    Valid(input): Valid<StorePost>,
) -> laravel::Result<Redirect> {
    let post = create!(Post { user: &user, ..input }).await?;

    Ok(redirect!(show, &post))
}

Two details here say a lot about the proposal. First, every input struct must declare who may submit it (anyone, authenticated or a custom function). If you forget, the code does not compile. Second, ..input only fills the columns declared on the struct, so mass assignment stops being a problem by construction.

Queries follow the same idea. Column names, operators and value types are checked by the compiler, and eager loading is explicit:

let posts = Post::query()
    .filter(
        Post::published_at.is_not_null()
            & (Post::votes.ge(10) | Post::user_id.eq(user.id)),
    )
    .order_by(Post::published_at.desc())
    .with((Post::user, Post::comments))
    .limit(10)
    .get()
    .await?;

And workflows, the new feature this time, let a multi-day flow fit in a single function:

// src/workflows/onboard_user.rs
#[workflow]
impl OnboardUser {
    async fn handle(self, run: &Run) -> laravel::Result<()> {
        run.step("send welcome email", self.send_welcome_email()).await?;

        run.sleep(3.days()).await?;

        if run.step("count projects", self.count_projects()).await? == 0 {
            run.step("send tips", self.send_tips()).await?;
        }

        Ok(())
    }
}

Each step runs once, its result is saved and the run is suspended during the sleep, without holding a worker. It runs on the same queue workers, with no separate orchestration service.

The 18x benchmark

The number that will go around is this one: Laravel Rust would be 18 times faster than Laravel PHP. It is worth reading the benchmark post before repeating it.

The test is an API with two endpoints (list and fetch one record), a MySQL database with 200 records, running on 1 vCPU, 4 GiB instances on Laravel Cloud. The load ramps from 1 to 2,000 requests per second over 20 minutes. Six frameworks were tested in total: Laravel Rust, Laravel PHP, Django, Rails, Rocket and Beego.

The published numbers for the two Laravels:

Metric Laravel Rust Laravel PHP
Peak throughput (best 10 s window with no failures) 1,774 req/s 97 req/s
Median latency at 50 req/s 62 ms 78 ms
Memory at 50 req/s 16 MB 134 MB
Median wake time (scale to zero) 154 ms 712 ms

Look at the second row. Under a manageable load of 50 req/s, latency is comparable: 62 ms against 78 ms. The big difference is in CPU, memory and how much a single instance can take before it starts failing.

So 18x is a measure of capacity per instance under overload, not "every request gets 18 times faster". Other points the post itself acknowledges:

It is an internal number, from the company that sells the hosting, in a scenario that favors compiled languages. That does not invalidate the result, and the benchmark repository is public, which is great. It is also worth saying that the PHP side did not run on PHP-FPM: according to the repository, it is Laravel 13 on PHP 8.5, served by Octane on FrankenPHP with 4 workers.

Two months instead of fifteen years

Along with the announcement, Taylor published a letter to the community. That is where the most important part of the story is.

He says he built Laravel Rust over the last two months, with heavy use of cloud agents, and that those tools made it possible to reimagine Laravel "in two months instead of fifteen years". At the same time, he makes a point of saying the result is not a "slop fork": every API, every convention and every page of documentation was curated and tuned by him.

That division of labor is the point. AI did not decide what the framework should be. That was decided by someone with fifteen years of formed opinion on how a web framework should behave. What AI did was remove the cost of typing all of that in another language.

Rewriting an entire framework in another language has always been the kind of project nobody started, because the math did not work: years of effort to end up where you already were. When the timeline drops to months, the decision stops being absurd and becomes a bet.

A framework built for AI agents

Laravel Rust was not only written with AI. It was designed to be programmed by AI, and that shows up in very concrete things. Every new application ships with:

That last item solves a real problem. A framework that is a few weeks old is not in any model's training data, so the agent tends to invent function signatures or mix in APIs from other frameworks. With the documentation on disk, matching your Cargo.lock version, it reads the right guide before writing.

The documentation itself recommends using cloud agents, several in parallel, instead of compiling everything on your machine. The reason is practical: compiling Rust takes disk space, CPU and time. The idea is to hand three or four independent tasks to different agents and review the pull requests as they arrive.

If you have been following the MCP posts on this blog, the movement is the same: tools are being redesigned to have an agent as a user, not only a person.

AI changes the math of choosing a language

The announcement starts from a strong premise: that people will increasingly stop writing and reading application code by hand. From there, the reasoning goes like this.

Languages like PHP, Ruby and Python gained ground because they are pleasant for humans to write. They do more work at runtime so that you write less. If the one writing is an agent, which does not get tired and does not mind verbosity, that advantage weighs less. And what used to be a cost in Rust (strict compiler, types everywhere, borrow checker) becomes an advantage, because it is a set of guardrails that stops the agent's mistake before it reaches production.

For an agent, a compile error is the best possible feedback: it is immediate, objective and points to the line. A mass assignment bug in production does not warn anyone.

I agree with half of this thesis. The "switching languages got much cheaper" part I can see happening. AI shortens the distance between knowing a concept and being able to apply it in a syntax you have not mastered. A team that knows Laravel's routes, middleware, queues and models can be productive in Rust much sooner than it could three years ago, even more so when the concepts carry the same names.

What AI does not solve

The "nobody will read code anymore" part is where I hit the brakes. AI made writing cheaper. It did not make everything that comes after cheaper to the same degree:

There is also a detail worth remembering: this is a beta, of a framework written in two months. The curation may be excellent, but maturity is something only time and production use can give.

Is Laravel PHP going away?

No. The letter is direct on this: Laravel PHP is not going anywhere and is not entering maintenance mode. Weekly releases continue, both frameworks will be developed in parallel, and a new Agent Kit for the PHP side came out the same week.

Still, Taylor asks the question out loud: how many ambitious, net-new projects, from 2027 on, will choose PHP? It is an uncomfortable question coming from him, and I think it is healthy that it gets asked instead of swept under the rug.

My reading is less dramatic. PHP did not get worse today. What changed is that Laravel stopped being a synonym for PHP: in the letter, the language is treated as an "implementation detail" of a philosophy of web development. For most applications, the bottleneck is still the database, the data modeling and the business rules, not the language. The benchmark itself shows comparable latency when the load fits the machine.

Where Rust really makes a difference is infrastructure cost at scale and highly concurrent scenarios, like WebSockets and long calls to AI APIs. And the benchmark post offers an interesting path for that: keep most of the system in PHP and move only the hottest parts to Rust, with both applications attached to the same database.

It is worth remembering that the PHP ecosystem is also moving in this direction. I have written here about TypePHP, a project from the Swoole team that compiles PHP to a native binary.

Frequently asked questions

What is Laravel Rust? It is a full-stack web framework written in Rust, created by the Laravel team. It brings Laravel's conventions (routes, models, queues, mail, validation) to an application that compiles to a native binary.

Is Laravel Rust open source? Yes. According to the official site, it is open source under the MIT license, the same as Laravel PHP.

Is Laravel Rust production ready? It is in beta, version 0.x, and the documentation warns that breaking changes may happen before 1.0. For a small new project it can be a good experience. For a critical system, I would wait.

Do I need to know Rust to use it? The site says it helps, but that the framework is built for a scenario where agents write most of the code and the compiler verifies it. In practice, someone on the team needs to be able to read, review and debug what was generated.

Can I migrate a Laravel PHP application to Laravel Rust? No automatic migration tool has been announced. The concepts are the same, but the code is different. The suggested path is gradual: keep the system in PHP and move the most critical parts to Rust, with both applications using the same database.

Which databases does Laravel Rust support? PostgreSQL (the default), MySQL, MariaDB and SQLite.

Does Laravel Rust have Blade and Eloquent? Not under those names. Views use a Jinja syntax, and models are structs with #[model], with typed queries and no lazy loading.

Where can I host it? On any Linux server, running the binary under a process manager such as systemd, or on Laravel Cloud.

Conclusion

Laravel Rust is interesting as a framework, but it is more interesting as a signal. A project that a few years ago would have taken a decade, or simply would not have been done, shipped in two months because someone with a lot of judgment now has agents to execute.

For those who work with PHP, I see no reason to panic and no reason to ignore it. What AI is changing is the cost of transition: of language, of framework, of stack. What used to keep a team on a technology was, to a large extent, the cost of rewriting and relearning. That cost has dropped, and it will keep dropping.

What has not dropped is the value of understanding what is being built. In the end, the difference between Laravel Rust and a "slop fork" was not AI. It was the fifteen years of judgment of the person asking.

References

Share: