Sulat.com / Writing on AIWednesday, December 2, 2026
Enter →
Developer Tools/2 December 2026

A hands-on guide to Laravel Rust

Laravel Rust is in beta. I built an app from its skeleton, had Codex add a notes API, and benchmarked it against Laravel PHP on the same machine.

Red glass Laravel logo on a plinth wrapped in a rusty gear and copper circuits, for the Laravel Rust guide
Illustration: Sulat, featuring the Laravel logo

At a glance

  • Laravel Rust is in beta, built on Axum and Tokio, with typed models, validation, queues, durable workflows, mail, broadcasting and Inertia, and Taylor Otwell says Laravel PHP isn't entering maintenance mode.
  • I built an app from the skeleton and gave Codex one prompt for a notes API. It read the app's seven agent skills, wrote the model, migration, handler and tests, and six tests passed in 50 seconds.
  • In a five-model smoke test, Kimi, DeepSeek, Claude Opus, GPT-6.2 Sol and Gemini Neon all built the notes API and an Inertia React page, with tests and the frontend build passing.
  • Laravel's own benchmark says 18x the throughput of Laravel PHP on Laravel Cloud. My smoke test on one machine measured 41x to 105x on two small routes.
  • Laravel's data also shows the cost: a cold Cloud build took a median 3 minutes 1 second for Rust against 27 seconds for PHP.
  • Filament has said it's building Filament for Rust, and Otwell says the AI SDK and more packages are coming in the next few weeks.

Laravel Rust, the first beta of Laravel for Rust, is out, and Taylor Otwell calls it Laravel reimagined in Rust. I built an app from its skeleton, had Codex add a notes API to it, and ran it against Laravel PHP on the same machine.

I covered the first crates.io release in my earlier piece. This one is the full launch: what’s in the beta, what Laravel’s own benchmark claims, what I measured myself, and what it costs you to move to Rust.

What launched

Taylor Otwell on X, announcing Laravel Rust.

The beta covers routing, middleware, sessions, authentication, database models, queues, mail, workflows and testing helpers. It runs on Axum and Tokio, works with PostgreSQL, MySQL, MariaDB and SQLite, and is MIT licensed. Every new app ships with agent skills that tell a coding agent how to write and test idiomatic Laravel Rust.

Laravel Rust is not a blind port of Laravel to Rust.

Taylor Otwell, Introducing Laravel Rust

The compiler does work a PHP app does at runtime. Column names, relationships, validated inputs and authorisation checks are verified at compile time, and every request input struct has to declare who may submit it or the code won’t compile. Laravel says the beta is near feature parity with Laravel PHP and that the remaining gaps will close within weeks.

7

agent skills in a new app

4

databases supported

50 s

for Codex to add a notes API

Otwell’s letter

Alongside the launch, Otwell published a letter to the Laravel community, also posted on X. It explains why he built it. His question is what happens to a framework designed for human ergonomics when humans are “increasingly no longer reading or writing code by hand at scale”. He says he built Laravel Rust in two months, with heavy use of cloud agents, and that every API surface and every page of documentation was hand-curated by him.

The part PHP developers will read first is this one.

Laravel PHP is not going anywhere, and it is not entering maintenance mode.

Taylor Otwell, A letter to the Laravel community

He adds that both frameworks will be developed in parallel, that weekly PHP releases continue, and that Laravel’s new Agent Kit for PHP ships this week. His framing is that languages are an implementation detail of Laravel’s philosophy, which is the same line he used on X before the beta.

What I built

I started from the official skeleton repository, pointed it at SQLite, generated an application key, ran the migrations and built it on Rust 1.99, the minimum the crate needs. The release build took about six minutes on a four-core machine and produced a binary of roughly 67 MiB.

The skeleton carries its own instructions for agents: an AGENTS.md, a CLAUDE.md that points to it, and seven skills under .agents/skills. They’re auth-and-authorization, database-and-models, inertia-frontend, queues-and-workflows, testing-laravel-rust-apps, validation-and-input and writing-laravel-rust-apps.

Codex builds a notes API

The agent skills are the part of Laravel Rust I most wanted to test, so I gave Codex CLI, on GPT-6.2 Sol, one prompt in the skeleton and recorded the whole run. The prompt is below.

Code
Add a notes resource to this app: a Note model with a title and a body, a migration, a JSON API at /api/notes with index and store, validation (title required, 3 to 100 characters), and feature tests. Follow the conventions in AGENTS.md. Run cargo test and make sure everything passes.
The recorded run, start to finish. Nothing was edited or sped up.

Codex read AGENTS.md and the skills first, then ran the main skill’s helper script for locating the framework docs before it wrote anything. It added a Note model, a migration, a handler module, two routes and four feature tests, ran cargo test, and reported all six tests passing after 50 seconds of work.

Codex terminal summary: Note model, migration, two JSON endpoints, four feature tests, all six tests passed in 50 seconds
Codex’s own summary at the end of the run.

The handler is the part worth reading. Codex used the framework’s typed input struct, so validation and authorisation are declared on the type, and the handler only runs once the input is valid.

Code
#[laravel::input(fills = Note)]
#[validate(anyone)]
pub struct StoreNote {
    #[validate(required, min_length(3), max_length(100))]
    pub title: String,
    pub body: Option<String>,
}

pub async fn index() -> laravel::Result<Json<Vec<Note>>> {
    let notes = Note::query().order_by(Note::id.asc()).get().await?;

    Ok(Json(notes))
}

pub async fn store(Valid(input): Valid<StoreNote>) -> laravel::Result<(StatusCode, Json<Note>)> {
    let note = create!(Note { ..input }).await?;

    Ok((StatusCode::CREATED, Json(note)))
}

The model is eight lines, and the migration uses the fluent schema builder the docs describe. The tests cover listing, creation, an omitted body and four invalid titles, and they assert that no rows were written when validation fails. That matches the conventions in the skeleton’s testing skill, which is the point of shipping the skills with the app.

Flow: AGENTS.md and seven skills, Codex reads them, model migration handler and tests, cargo test six pass
Four steps from prompt to a green test run.

Five models, same two prompts

Codex is one agent on one model. To see whether the skeleton’s skills carry across harnesses and models, I ran the same task in opencode 1.19.6 on Kimi K3.1 Pro, DeepSeek V4.1 Flash, Claude Opus 5.5, GPT-6.2 Sol and Gemini 4 Neon. Each started from a fresh copy of the skeleton on SQLite, got the notes prompt from above, then a second prompt in the same session asking for the frontend.

Code
Add an Inertia React page at /notes that lists the notes and has a form to add a new one. Follow the project's existing conventions. Make sure npm run build and cargo test both pass.

All five finished both prompts. In every final app, cargo test and npm run build pass, the API returns 201 for a valid note and 422 for a title of two characters, and the /notes page adds and lists a note through its form. All five consulted the bundled skills or docs before they wrote code.

ModelNotes testscargo testnpm run build422 on a short titleForm adds a note
Kimi K3.1 Pro7PassPassYesYes
DeepSeek V4.1 Flash6PassPassYesYes
Claude Opus 5.510PassPassYesYes
GPT-6.2 Sol6PassPassYesYes
Gemini 4 Neon7PassPassYesYes
A five-model smoke test: one run per model, checked by me after the runs.

Each model chose its own layout, because I didn’t prompt for design, so the screenshots below aren’t a quality ranking. Each one shows the page after I added a note through its form.

Notes page with a form and one saved note, built in a Laravel Rust app by Kimi K3.1 Pro
Kimi K3.1 Pro’s notes page.
Notes page with a form and one saved note, built in a Laravel Rust app by DeepSeek V4.1 Flash
DeepSeek V4.1 Flash’s notes page.
Minimal notes page with a form and one saved note, built in a Laravel Rust app by Claude Opus 5.5
Claude Opus 5.5’s notes page.
Notes page with a form and one saved note, built in a Laravel Rust app by GPT-6.2 Sol
GPT-6.2 Sol’s notes page.
Notes page with a header, form and an All notes count of one, built in a Laravel Rust app by Gemini 4 Neon
Gemini 4 Neon’s notes page.

One gotcha if you run more than one agent at a time: the skeleton’s .cargo/config.toml points every app at a shared build directory in the cargo cache. When I ran the five apps side by side they shared it, and one app’s check failed on another app’s build artifact. Give each app its own with CARGO_BUILD_BUILD_DIR.

The benchmarks

Laravel’s numbers

Laravel on X, announcing the benchmark.
Sam Rose, who ran the benchmark, posts a short video on X in reply to Laravel’s announcement.

Sam Rose, a staff developer educator at Laravel, ran the company’s benchmark. He sent six frameworks a read-only workload that ramped from 1 to 2,000 requests a second over 20 minutes using k6, then took the best 10-second window with no failed requests. Each app served a list endpoint for 80 percent of requests and a single-record endpoint for 20 percent, on Laravel Cloud in Canada Central with a MySQL database holding 200 rows.

FrameworkRequests a secondp50 (ms)p99 (ms)Memory
Laravel Rust1,77465137179M
Rocket1,623110213146M
Beego1,596275940159M
Rails253121283252M
Django183689987147M
Laravel PHP971,9952,707481M
Laravel’s overload test, as published by Laravel. Not my measurements.

That’s the 18x: 1,774 against 97. The steady-load results are less dramatic and more useful. At a flat 50 requests a second all six frameworks coped, and median latency was close, at 62 ms for Laravel Rust and 78 ms for Laravel PHP. The difference was in what it cost to serve them. Laravel Rust used 4.2 percent CPU and 16M of memory, and Laravel PHP used 52.4 percent CPU and 134M.

Rose’s own caveat is worth repeating: “The apps are intentionally simple to make comparison between them easier, results for more complex apps will be different to what you see in this post.”

My smoke test

I ran my own comparison on one machine with four cores and 16 GB of memory. The Rust app was a release build of the skeleton, laravel-rust 0.1.2, on SQLite. The PHP app was Laravel 13.45.0 in production mode on PHP 8.3.6, with config, route and view caches, OPcache with the JIT on, nginx in front and PHP-FPM running eight static workers, also on SQLite. Each app served two routes: /api/version, which returns a line of JSON, and /api/count, which runs a count query on the users table.

I warmed each app up, then ran autocannon flat out for 15 seconds at 16, 64 and 128 connections, plus 20 seconds at a fixed 50 requests a second for latency. It’s one run per setting, so treat it as a smoke test, not a benchmark suite.

Route and connectionsLaravel Rust (req/s)Laravel PHP (req/s)Ratio
JSON, 1650,86862581x
JSON, 6462,199592105x
JSON, 12863,902609105x
Database, 1623,85858341x
Database, 6425,81457945x
Database, 12827,71658248x
My smoke test: one machine, one run per row, no failed requests in any run.
Bar chart: Laravel Rust 62,200 requests a second on a JSON route against 590 for PHP; 25,800 against 580 on a database route
At 64 connections, Laravel PHP’s bar is barely visible next to Laravel Rust’s.

At a fixed 50 requests a second, Laravel Rust’s median latency rounded to 0 ms with a p99 of 5 ms on the JSON route. Laravel PHP’s median was 4 ms with a p99 of 15 ms. After the load runs, resident memory was about 60 to 72 MB for the Rust server and about 290 to 310 MB for the PHP-FPM pool.

Why the two sets of numbers differ

Laravel’s 18x and my 41x to 105x point the same way, but they aren’t the same measurement. Mine ran over loopback on one box, with the load generator sharing the CPU, on two tiny routes. Laravel’s ran across a network on Cloud against MySQL, and it scores the best clean 10-second window of a ramp. Neither one is your app. A real app spends its time in queries, templates and third-party calls, and that narrows the gap.

Two columns comparing Laravel's Cloud and MySQL ramp test at 18x with my local flat-out SQLite test at 41x to 105x
Different setups, same direction.

Inertia and the frontend

Otwell says Laravel Rust ships with full Inertia support and server-side templating from day one, including deferred props, live props, prefetching and layouts, for React, Vue or Svelte frontends. The skeleton agrees: it comes with the Inertia v3 React adapter and React 19 wired up through Vite, and the docs show inertia::defer for slow queries and .live() for props that refresh over WebSockets through Reverb.

This matters because most Laravel apps are an Inertia or Livewire frontend over a PHP backend. Inertia is the path that carries over to Rust unchanged for the frontend developer.

Durable workflows

Otwell’s other headline feature is durable workflows: long-lived processes written as one async function in a single file, including ones that sleep for days and react to webhooks and decisions. Laravel executes each step once, saves its result, and resumes across sleeps, webhooks, deploys and worker restarts. Workflows need a queue connection that supports delayed jobs, such as database, Redis or SQS.

Code
#[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(())
    }
}

That’s the example from Laravel’s docs. In my earlier piece I ran a workflow like it in the test harness, moved the clock forward three days and watched it finish in a fraction of a second. For a durable workflow, run.wait_for waits on a token and workflow::resume wakes it from a route, which is how an approval link in an email can finish a run.

Who else is joining

Filament on X, linking to its Filament for Rust page.

Filament, the admin panel framework for Laravel, has joined in. Its site now carries a Filament for Rust page, and the page says, in full, “We’re building Filament for Rust. More soon.” There’s no release date or feature list yet.

Inertia is the other piece in place. The Inertia project’s Rust adapter, inertia-laravel-rust, was already public in alpha before the launch, and Laravel Rust ships Inertia built in. On the hosting side, Laravel Cloud’s runtimes page lists Rust, with Axum, Actix Web, Rocket and warp detected, and I covered that in my piece on Cloud running Rails, Django, Go and Rust apps.

Otwell says more is coming from Laravel itself.

There are few more packages we’ll be bringing to Laravel Rust in the coming weeks, including the AI SDK.

Taylor Otwell on X

What it costs you

The speed comes with a build bill, and Laravel’s own data shows it. Across 100 cold builds per framework on Laravel Cloud, the median build took 3 minutes 1 second for Laravel Rust and 27 seconds for Laravel PHP, and the slowest Rust build took more than six minutes. My own release build took about six minutes on a four-core machine. Laravel’s local incremental Rust build, measured on an M4 MacBook Pro, was a median 1.1 seconds, so the loop you work in is quick and the cold build is the slow part.

Laravel also reports wake-from-sleep on Cloud at a median 154 ms for Rust and 712 ms for PHP, which matters if you scale to zero. Beyond that, it’s a beta. Your team needs Rust, the minimum toolchain is 1.99, no package from the PHP ecosystem comes across, and the framework says some gaps with Laravel PHP are still open. Nobody’s PHP app ports to this, because it’s a new framework with Laravel’s vocabulary.

What I’d do

Leave your Laravel PHP app where it is, because Otwell has said it isn’t going anywhere. Try Laravel Rust on a new small service where throughput, memory or scale-to-zero cost matters, and let an agent do the first pass. The Codex run is the strongest evidence I have: one prompt produced a validated, tested API with no help from me, and the skeleton’s skills are why. The performance gap is real in both Laravel’s test and mine. How much of it survives your app is something only your app can tell you.

Check it yourself

These commands reproduce my smoke test against any two apps on the same port, and run the Codex-generated tests.

Code
cargo test
autocannon -c 64 -d 15 http://localhost:8000/api/version
autocannon -c 4 -R 50 -d 20 http://localhost:8000/api/version

Sources

Disclosure: I’m an OpenAI, Firecrawl and Devin ambassador.