Laravel Rust Beta Is Here: Taylor Otwell Brings Laravel to Rust
On December 1, 2026, Taylor Otwell announced the first beta of Laravel Rust, a full-stack web framework that brings Laravel's conventions and developer experience to the Rust language. For the many developers who love Laravel's productivity but want the speed and safety of Rust, this is big news.
In this article, we cover what Laravel Rust is, what it includes, and why it matters.
What Is Laravel Rust?
Laravel Rust is not a direct port of Laravel PHP. According to the announcement, it is Laravel reimagined in idiomatic Rust. It keeps Laravel's batteries-included philosophy: routing, middleware, sessions, authentication, database models, queues, mail, testing helpers, and more. It is written the way Rust developers expect.
Two ideas stand out in the announcement:
- Built for the AI age. Every new application ships with built-in agent skills that guide coding agents on how to write and test idiomatic Laravel Rust code. The team argues that as AI writes more code, strict compilers and strong conventions matter more.
- Near feature parity. The team says Laravel Rust is already close to Laravel PHP in features, and that the small remaining gaps will be closed in the coming weeks.
Performance: The 18x Claim
The biggest headline is speed. In internal benchmarks on Laravel Cloud, the team reports that Laravel Rust runs 18x faster than Laravel PHP, while using less CPU and memory. They also say it lowers infrastructure cost and tail latency, and lets a single instance handle more traffic during spikes.
These are the team's own benchmarks, so real-world results will depend on your application. Still, it shows what the framework is aiming for.
The framework is built on Axum and Tokio, so everything is asynchronous: HTTP handlers, middleware, database queries, the HTTP client, Redis, queues, S3, SQS, and WebSockets. Blocking work such as bcrypt hashing is moved to a separate thread pool, so slow requests do not stall the rest of your app. Handlers are Axum handlers, so any Axum extractor or tower layer works.
A Quick Look at the Code
Here is the minimal example from the crate documentation:
rust
use std::process::ExitCode;
use laravel::prelude::*;
async fn home() -> &'static str {
"Welcome to Laravel for Rust"
}
fn web(route: &mut Router) {
route.get("/", home);
}
fn main() -> ExitCode {
Application::configure()
.with_routing(|routing, _| {
routing.web(web);
})
.run()
}
Key Features
Type-Safe Routing
Routes live in src/routes/web.rs and src/routes/api.rs. Route model binding loads a record from the URL and returns a 404 if it does not exist. You can generate URLs from handler functions using macros like route! and redirect!, so a renamed path is caught at compile time instead of leaving broken links.
Typed Validation
Incoming form and JSON data are described as Rust structs with #[laravel::input] and #[validate(...)] rules. Some guarantees come from the types themselves:
- Every input struct must declare who may submit it, or the code will not compile.
- Your handler runs only after validation passes. On failure, browsers are redirected back with errors and API clients get a 422 response.
- No mass-assignment bugs, because only the declared fields are filled.
- Special types such as
PasswordandPasswordHashkeep secrets out of logs and JSON responses.
Models and Relationships
Models are structs annotated with #[model], with relationships such as #[belongs_to] and #[has_many]. Column names, operators, and value types are checked by the compiler. Relationships are never lazy-loaded behind your back, so you load what you need up front, which prevents accidental N+1 queries by design.
Migrations and Safe Raw SQL
Migrations are Rust files compiled into your binary, so a deployed server can run migrate without your source code. The schema builder supports PostgreSQL, MySQL, MariaDB, and SQLite. For raw SQL, the db::query! macro turns every captured value into a bound parameter, preventing SQL injection by construction.
Queues
Jobs are structs deriving Queueable, discovered automatically. When a job holds a model, only its primary key is stored and a fresh record is loaded when the job runs. One API covers database, Redis, Amazon SQS, and Laravel Cloud queue drivers, with retries, middleware, chains, and batches.
Durable Workflows (New)
Workflows are new to Laravel. They let you write a long, multi-day process, such as "send a welcome email, wait three days, then send tips", as one async function. They run on your existing queue workers with no separate orchestration service. A workflow that waits for two weeks uses no worker resources and survives deployments and restarts.
Mail, Broadcasting, and Inertia
- Mail: typed mailable structs, with HTML and plain-text versions rendered automatically. Resend and Amazon SES are supported.
- Broadcasting: add
#[event(broadcast(..))]to push events over WebSockets. A Rust-based Reverb server is included for local development. - Inertia.js: full support for React, Vue, and Svelte, including deferred props, live props, polling, and server-side rendering. Built-in views with Vite integration are available too.
Built-In Extras
Automatic OpenTelemetry tracing, social login (Google, GitHub, Microsoft), feature flags, and isolated full-stack testing with #[laravel::test] are all included.
How to Get Started
The announcement says to install the new Laravel CLI and create your first Laravel Rust application. If you already have an older laravel CLI or Laravel Herd installed, check the installation guide for PATH setup. When you are ready to deploy, you can run the compiled binary on your own servers or use Laravel Cloud, which offers managed databases, caches, queues, WebSockets, and scale-to-zero compute.
Should You Use It Now?
Laravel Rust is a beta, so it is best to try it on side projects first before moving production apps. Laravel PHP is not going away, and the benchmark numbers come from the Laravel team itself. Still, if you want Laravel's developer experience with Rust's performance and compile-time safety, this is worth exploring.
Final Thoughts
Laravel Rust shows the direction web frameworks may take: fast, type-safe, and designed for both humans and AI coding tools. If you already know Laravel, much of the structure will feel familiar, and Rust adds stronger guarantees on top. We will keep following its development as the beta matures.
Source: Official Laravel Rust announcement by Taylor Otwell (December 1, 2026) and the laravel crate documentation.
Frequently Asked Questions (FAQ)
1. What is Laravel Rust?
2. Is Laravel Rust a port of Laravel PHP? Can I run my existing PHP code on it?
3. How much faster is Laravel Rust than Laravel PHP?
4. Is Laravel Rust ready for production?
5. How do I get started with Laravel Rust, and where can I deploy it?
Test what you just learned with 31 interactive multiple-choice questions and instant explanations.
- Nazmul Hoque
- Dec 2, 2026
- 6 min read
- 7
Tags
Share This:
Senior Full-Stack Engineer with 8+ years of experience building production web and mobile applications using Laravel, Next.js, TypeScript, JavaScript, React, Vue.js, MySQL, PostgreSQL, and Flutter.
You May Also Like Below Articles
Handpicked related tutorials and step-by-step developer guides to continue learning.