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
- Otwell’s letter
- What I built
- Codex builds a notes API
- Five models, same prompts
- The benchmarks
- Inertia and the frontend
- Durable workflows
- Who else is joining
- What it costs you
- What I’d do
What launched
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.
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.
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.

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.
#[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.

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.
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.
| Model | Notes tests | cargo test | npm run build | 422 on a short title | Form adds a note |
|---|---|---|---|---|---|
| Kimi K3.1 Pro | 7 | Pass | Pass | Yes | Yes |
| DeepSeek V4.1 Flash | 6 | Pass | Pass | Yes | Yes |
| Claude Opus 5.5 | 10 | Pass | Pass | Yes | Yes |
| GPT-6.2 Sol | 6 | Pass | Pass | Yes | Yes |
| Gemini 4 Neon | 7 | Pass | Pass | Yes | Yes |
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.





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
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.
| Framework | Requests a second | p50 (ms) | p99 (ms) | Memory |
|---|---|---|---|---|
| Laravel Rust | 1,774 | 65 | 137 | 179M |
| Rocket | 1,623 | 110 | 213 | 146M |
| Beego | 1,596 | 275 | 940 | 159M |
| Rails | 253 | 121 | 283 | 252M |
| Django | 183 | 689 | 987 | 147M |
| Laravel PHP | 97 | 1,995 | 2,707 | 481M |
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 connections | Laravel Rust (req/s) | Laravel PHP (req/s) | Ratio |
|---|---|---|---|
| JSON, 16 | 50,868 | 625 | 81x |
| JSON, 64 | 62,199 | 592 | 105x |
| JSON, 128 | 63,902 | 609 | 105x |
| Database, 16 | 23,858 | 583 | 41x |
| Database, 64 | 25,814 | 579 | 45x |
| Database, 128 | 27,716 | 582 | 48x |

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.

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.
#[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, 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.
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
- Introducing Laravel Rust, Laravel blog
- A letter to the Laravel community, Laravel blog
- Laravel Rust: 18x the throughput of Laravel PHP, Laravel blog
- Workflows, Laravel Rust docs
- Filament for Rust
- Taylor Otwell on Inertia support
- Taylor Otwell on durable workflows
- Taylor Otwell on upcoming packages
Disclosure: I’m an OpenAI, Firecrawl and Devin ambassador.




