Skip to content
Home
Software

Laravel Rust: What It Offers, How It Differs from PHP and What’s Next

Sinan Eldem

• 11 min read

Laravel Rust: What It Offers, How It Differs from PHP and What’s Next

On December 1, 2026, Laravel released Laravel Rust as a beta. Designed from scratch by Taylor Otwell, the new framework brings the Laravel approach we already know (routes, models, queues, authentication and Inertia) to Rust. It is not a copy of Laravel PHP; in Laravel’s own words, it is “Laravel reimagined in idiomatic Rust”. This article looks at what Laravel Rust offers, how its code differs from PHP, what the performance claims actually say, and what lies ahead.

What Is Laravel Rust?

Laravel Rust is a full-stack, batteries-included web framework built end to end on Axum and Tokio. Like Laravel PHP, it is open source under the MIT license. Handlers, middleware, database queries, the HTTP client, Redis, queues and WebSockets are all asynchronous.

The announcement stresses one point: Laravel Rust is not a line-by-line port. Taylor Otwell designed every API for Rust, asking what the most Laravel way to do it would be, and left out legacy pieces that don’t fit Rust or AI-assisted coding. Every new application ships with built-in agent skills that teach coding agents how to write and test idiomatic Laravel Rust code (announcement).

Key Features

According to the official announcement, the first beta includes:

  • Routing, middleware, validation, sessions, authentication and authorization

  • An ORM, query builder, pagination, migrations, seeding and Redis

  • Queues with job chains and batches, plus a scheduler

  • Full Inertia support for React, Vue and Svelte, including SSR

  • Events and broadcasting that work with Laravel Reverb, plus a Reverb-compatible WebSocket server written in Rust

  • File storage (local and S3-compatible), mail, and email, SMS and Slack notifications

  • Testing fakes, database refresh and parallel test runs

  • Durable workflows that can run for days

  • Jinja-syntax templates, OpenTelemetry traces, and support for PostgreSQL, MySQL and SQLite

Laravel describes the framework as being at “near feature parity” with Laravel PHP and says the small remaining gaps will be closed in the coming weeks. Which pieces are missing has not been listed yet.

Installation

Laravel Rust requires Rust 1.99 or later, Node.js LTS and Git. Once the new laravel CLI is installed, laravel new asks which language you want; choose Rust or pass --rust directly (installation docs):

curl -fsSL https://laravel.com/install.sh | sh

laravel new example-app --rust
cd example-app

laravel migrate
laravel dev

laravel dev starts the application, a queue worker and Vite Plus at once, serving the app at http://127.0.0.1:8000. PostgreSQL is the default database; switching to SQLite or MySQL is a matter of changing a feature flag in Cargo.toml. New projects come with TypeScript, Tailwind CSS and Vite.

How the Code Differs from PHP

The most striking thing about Laravel Rust is that anyone who knows Laravel can read it at first glance. The concepts are the same; what changes is that dynamic behaviour gives way to types and macros checked at compile time.

1. Routes and route model binding

Route definitions are almost identical. Route model binding is there too: when a handler takes a User parameter, the record is loaded from the database automatically.

Laravel PHP:

use App\Models\User;
use Illuminate\Support\Facades\Route;

Route::get('/users/{user}', fn (User $user) => $user->name);

Laravel Rust:

use crate::models::User;

pub fn routes(route: &mut Router) {
    route.get("/users/{user}", async |user: User| user.name);
}

2. Models are typed structs

In Eloquent, a model’s columns come from the database and are reached through magic properties ($post->title). In Laravel Rust, a model is a struct with its fields and relationships spelled out:

// src/models/post.rs
use laravel::model::{BelongsTo, model};
use laravel::time::Timestamp;

use crate::models::User;

#[model]
pub struct Post {
    pub id: i64,
    pub user_id: i64,
    pub title: String,
    pub body: Option<String>,
    #[default]
    pub votes: i64,
    #[default]
    pub views: i64,
    pub published_at: Option<Timestamp>,
    pub created_at: Timestamp,
    pub updated_at: Timestamp,

    #[belongs_to]
    pub user: BelongsTo<User>,
}

Why it matters

  • A misspelled column or a wrong type fails at compile time, not at runtime.

  • Nullable fields are explicit through Option<…>, so there are fewer surprise nulls.

  • Editors and AI agents can see the model’s shape directly in the code.

3. Typed queries

The query builder feels very close to Eloquent; the difference is that columns are referenced through the model’s own fields (Post::votes) instead of strings.

Laravel PHP:

use App\Models\Post;
use Inertia\Inertia;

public function index()
{
    $posts = Post::where('votes', '>', 100)
        ->whereNotNull('published_at')
        ->orderByDesc('published_at')
        ->get();

    return Inertia::render('Posts/Index', ['posts' => $posts]);
}

Laravel Rust:

use laravel::inertia::{self, Page, props};

use crate::models::Post;

pub async fn index() -> laravel::Result<Page> {
    let posts = Post::query()
        .filter(Post::votes.gt(100) & Post::published_at.is_not_null())
        .order_by(Post::published_at.desc())
        .get()
        .await?;

    Ok(inertia::render("Posts/Index", props! { posts }))
}

Error handling follows Rust conventions: the handler returns a laravel::Result and the ? operator propagates errors. Every .await is a reminder that database calls are asynchronous.

4. Typed input structs instead of form requests

Validation rules live as attributes on the struct that represents the incoming data. A handler can only receive a validated Valid<NewPost>, and the signed-in user arrives typed as Authenticated<User>.

use laravel::model::create;
use laravel::prelude::*;

use crate::models::{Post, User};

#[laravel::input(fills = Post)]
#[validate(authenticated)]
pub struct NewPost {
    #[validate(required, max_length(255))]
    pub title: String,
    #[validate(required)]
    pub body: String,
}

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

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

5. Queued jobs

Retries, backoff and timeouts move from class properties into the #[job] attribute, and durations read naturally as 2.minutes().

Laravel PHP:

class ProcessPodcast implements ShouldQueue
{
    use Queueable;

    public $tries = 3;
    public $backoff = [10, 60];
    public $timeout = 120;

    public function __construct(public Podcast $podcast) {}

    public function handle(): void
    {
        // Process the uploaded podcast...
    }
}

Laravel Rust:

// src/jobs/process_podcast.rs
use laravel::queue::{Queueable, job};

use crate::models::Podcast;

#[derive(Queueable)]
pub struct ProcessPodcast {
    pub podcast_id: i64,
}

#[job(
    queue = "podcasts",
    tries = 3,
    backoff = [10.seconds(), 1.minutes()],
    timeout = 2.minutes(),
)]
impl ProcessPodcast {
    async fn handle(self) -> laravel::Result<()> {
        let podcast = Podcast::find_or_fail(self.podcast_id).await?;

        // Process the uploaded podcast...

        Ok(())
    }
}

6. Durable workflows

Durable workflows are new to Laravel altogether. A process that sends a welcome email and continues three days later can be written as a single function whose steps and pauses (run.step(…), run.sleep(3.days())) are persisted, so the flow resumes where it left off even after a restart.

Performance: What Does “18x” Actually Mean?

The Laravel team built the same simple API (a paginated list and a single record) in six frameworks and measured them on Laravel Cloud (benchmark post). Each app ran on a 4 GiB instance with MySQL, under a load ramping from 1 to 2,000 requests per second over 20 minutes. The results:

  • Peak throughput: Laravel Rust handled 1,774 successful requests per second, Laravel PHP 97. Rocket (Rust) reached 1,623, Beego (Go) 1,596, Rails 253 and Django 183.

  • Latency at a steady 50 requests per second: a median of 62 ms versus 78 ms; CPU 4.2% versus 52.4%; memory 16 MB versus 134 MB.

  • Wake from sleep: a median of 154 ms versus 712 ms.

  • Build time: the median cold build on Laravel Cloud took 3 min 1 s for Laravel Rust and 27 s for Laravel PHP. Local incremental builds took about 1.1 s.

How to read these numbers

  • “18x” is a difference in peak request capacity, not general speed. At low and moderate load, the latency users feel differs only slightly (62 ms versus 78 ms).

  • The real gain is resource usage: serving the same traffic with far less CPU and memory means smaller servers and lower costs.

  • The test app was intentionally simple (200 records, 10 authors), and the post itself notes that results for more complex apps will differ. The PHP version and whether a persistent runtime such as Octane was used are not stated; with FrankenPHP or Octane, the gap would most likely narrow.

  • The trade-off is compile time: PHP has an instant save-and-refresh loop, while every Rust change is compiled.

What Happens to Laravel PHP?

The official answer is clear: “If you write PHP, nothing changes. Laravel PHP is fully maintained and supported.” (Laravel Cloud announcement) Agent Kit and Converse were announced for Laravel PHP the same day.

The bridge between the two is Laravel Cloud. Within the same organization and region, a Laravel PHP app and a Laravel Rust app can run side by side and attach to the same database. That is the path Laravel suggests: keep most of the app in PHP and move the busiest parts to Rust, or migrate gradually as time allows. Reverb-compatible WebSockets and Inertia give both sides a common language.

Laravel Cloud also went multi-language the same day: alongside Laravel and Symfony, it now runs Rails, Django, FastAPI, Flask, Express, NestJS, Hono, Next.js, Nuxt, TanStack Start, Go and Rust apps on every plan at no extra cost. Managed queues are available for Laravel, Symfony, Rails and Laravel Rust.

What Lies Ahead

  • A stable release is close: Laravel plans to call Laravel Rust stable after about six to eight weeks of feedback. Until 1.0, APIs and configuration may change.

  • Hybrid architectures will spread: the admin panel, content and most business logic can stay in PHP while API endpoints, WebSockets, heavy queue work and long-running workflows move to Rust. A shared database and Cloud make that straightforward.

  • AI lowers Rust’s learning curve: ownership and borrowing have long been Rust’s biggest hurdle. Built-in agent skills, plus a strict type system that catches an agent’s mistakes at compile time, reduce that barrier considerably.

  • The ecosystem will take time: Laravel PHP has Filament, Livewire, Nova, the Spatie packages and more than a decade of community work behind it. None of these have Rust counterparts yet, although package development docs for Laravel Rust are already in place.

  • PHP isn’t standing still: with PHP 8.6, FrankenPHP and Octane, the performance gap on the PHP side keeps shrinking. For most projects, the right question won’t be “which is faster?” but “which fits this job better?”

When to Reach for Laravel Rust

  • It is a strong candidate for high-traffic APIs, real-time services and heavy background processing.

  • It pays off where server costs matter and a lot of work has to be done with few resources.

  • Rather than rewriting an existing Laravel PHP project, it is smarter to try it on a single service that is a bottleneck.

  • Until the stable release, be cautious about using it for business-critical production work.

Conclusion

Laravel Rust sets out to combine the developer experience Laravel has offered for years with Rust’s speed and type safety. Looking at the first examples, what I liked most is that anyone who knows Laravel can read the code with almost no effort. I don’t see this as the end of PHP; if anything, Laravel developers now have two strong tools.

Sources: Introducing Laravel Rust, Laravel Rust and Laravel Cloud for every framework, Laravel Rust benchmark, Laravel Rust documentation.

Sinan Eldem

Custom software and AI solutions with Laravel

Related posts

Start typing to search