<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/laravel-rust-beta-a-full-stack-rust-framework-with-compile-time-guardrails-ymeyuxqxz" -->

---
title: Laravel Rust Beta: A Full-Stack Rust Framework With...
description: Laravel Rust is a new beta full-stack Rust framework built on Axum and Tokio, announced by Taylor Otwell, that moves checks for columns, relationships, inputs,...
canonical: https://daily.dev/posts/laravel-rust-beta-a-full-stack-rust-framework-with-compile-time-guardrails-ymeyuxqxz
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Laravel Rust Beta: A Full-Stack Rust Framework With Compile-Time Guardrails | daily.dev
og:description: Laravel Rust is a new beta full-stack Rust framework built on Axum and Tokio, announced by Taylor Otwell, that moves checks for columns, relationships, inputs,...
og:url: https://daily.dev/posts/laravel-rust-beta-a-full-stack-rust-framework-with-compile-time-guardrails-ymeyuxqxz
og:image: https://api.daily.dev/og/posts/ymeyUxQxz.png
og:image:alt: Laravel Rust Beta: A Full-Stack Rust Framework With Compile-Time Guardrails
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Laravel Rust Beta: A Full-Stack Rust Framework With Compile-Time Guardrails

**[Anubhav Bhatt](https://daily.dev/sources/piirjq3y7ofa7m8zrpdg8)** · [@anubhavbhatt](https://daily.dev/anubhavbhatt) · 8 min read · 1 upvotes · 0 comments

## Summary

Laravel Rust is a new beta full-stack Rust framework built on Axum and Tokio, announced by Taylor Otwell, that moves checks for columns, relationships, inputs, authorization and secrets to compile time. Laravel reports it runs 18x faster than Laravel PHP in internal Laravel Cloud benchmarks, a vendor figure to verify yourself. The db::query! macro binds values as parameters instead of concatenating SQL. New durable workflows let one async function span days on existing queue workers. It is near, not at, feature parity with Laravel PHP.

## Content

On December 1, 2026, Taylor Otwell announced the first beta of Laravel Rust, a full-stack Rust framework that brings Laravel's feature set to a new language. It covers routing, middleware, sessions, authentication, database models, queues, mail, workflows and testing helpers. The Laravel team says it is "not a blind port of Laravel to Rust" but Laravel reimagined in idiomatic Rust. This post walks through what the beta includes, which claims come from Laravel's own benchmarks, and what to check before you try it.

### Key Takeaways

```
- Laravel Rust is a beta full-stack framework built on Axum and Tokio. Laravel says it is near feature parity with Laravel PHP and that the remaining gaps will close within weeks.
 - Laravel reports 18x faster performance than Laravel PHP in internal benchmarks on Laravel Cloud, with lower CPU and memory use. These are vendor numbers, not independent results.
 - The compiler checks column names, relationships, validated inputs, authorization and secrets, and the db::query! macro binds values as parameters instead of concatenating them into SQL.
 - Durable workflows are new: one async function can span days, run on existing queue workers, and wait two weeks without using worker resources.
 - Every new app ships with agent skills so coding agents write and test idiomatic Laravel Rust.
```

## What is Laravel Rust?

Laravel Rust is a separate framework from Laravel PHP, not a wrapper around it. The announcement says it keeps Laravel's full-stack philosophy while using Rust's type system. It is built end to end on [Axum](https://docs.rs/axum) and [Tokio](https://tokio.rs). Laravel calls it "thoughtfully curated for a great developer experience when building with AI," and every new application includes built-in agent skills that guide coding agents.

The framing comes from a companion essay, [A Letter to the Laravel Community](https://laravel.com/blog/a-letter-to-the-laravel-community). It argues that humans will increasingly neither write nor manually read application code at scale, so strict compilers, strong guardrails and batteries-included conventions matter more. Laravel Rust is the product of that argument: let the compiler reject mistakes before a person or an agent ships them.

## How fast is it?

Laravel says that in internal benchmarks on Laravel Cloud, Laravel Rust runs 18x faster than Laravel PHP while using significantly less CPU and memory. It points to lower infrastructure cost, lower tail latency, and more traffic absorbed by one instance during a spike. A separate [benchmark post](https://laravel.com/blog/laravel-rust-benchmark) has the details. Treat the figure as a vendor claim until you measure your own workload.

The speed story rests on async design. HTTP handlers, middleware, database queries, the HTTP client, Redis, queues, S3, SQS and WebSockets are all non-blocking. Blocking work such as bcrypt hashing and local disk I/O moves to Tokio's blocking thread pool. A slow query, a third-party webhook or a long AI API call does not stall the threads serving other requests.

## What does the compiler catch?

This is the core idea. Laravel says database column names, relationships, validated form inputs, authorization checks and secret values are verified at compile time.

![Code passing through a compiler gate that checks columns, relationships, inputs, authorization and secrets before production](https://media.daily.dev/image/upload/s--zWsPnurL--/f_auto/v1796187549/ugc/content_3d0eae89-ecca-4b30-bce4-92feb1c5579e?_a=BAMAMiiw0)

### Routing and URLs

Routes live in `src/routes/web.rs` and `src/routes/api.rs`. You can use inline closures, route model binding that loads a record from a URI segment (a request to `/users/42` loads user 42, or returns a `404`), and handler modules under `src/http/handlers/`. The `route!` and `redirect!` macros generate URLs from handlers, so renaming a path cannot leave broken string URLs behind.

### Typed validation

Form and JSON payloads are Rust structs marked with `#[laravel::input]` and field-level `#[validate(...)]` rules. The types enforce several rules:

- **Explicit authorization:** each input struct must declare who may submit it (`anyone`, `authenticated` or a custom `authorize` function), or it does not compile.
- **Validation first:** rules run before the handler. Browsers are redirected back with errors, and API clients get a `422` JSON response.
- **No mass assignment:** a struct with `fills = Post` only fills columns it declares, so extra client fields are ignored.
- **Partial updates and secrets:** `Sometimes<T>` separates an omitted field from an explicit `null`. The `Password` type stays redacted in logs, and `PasswordHash` cannot be serialized into JSON or Inertia responses.

### Models and queries

Models are structs with `#[model]`, and relationships use `#[belongsto]` _and_ `#[hasmany]`. Typed columns include `db::Enum`, `db::Json` and `db::Embed`. Queries are checked for column names, operators and value types, and conditions combine with `&`, `|` and `!` instead of nested closures. Laravel compiles them into parenthesized, parameterized SQL.

Relationships are never silently lazy-loaded. You load them with `with`, which Laravel says prevents accidental N+1 queries by design.

For raw SQL, the `db::query!` macro captures Rust variables inside braces. Captures become bound parameters, lists expand to one parameter per item, and structs expand to bulk inserts. Laravel says the macro never concatenates values into the SQL string, which prevents SQL injection by construction.

### Migrations

Migrations are Rust files in `database/migrations/` that compile into the application binary, so a deployed server can run `migrate` without source files. The schema builder targets PostgreSQL, MySQL, MariaDB and SQLite, and migrations run in a transaction on PostgreSQL and SQLite.

## How does background work behave?

The `laravel::task` module runs work concurrently while carrying application context and tracing spans. It includes `task::tryjoin!` _for concurrent calls,_ `task::select!` _to race calls,_ `task::spawnblocking` for CPU-heavy work and `task::background` for work that runs after the response returns. "Ticks" are repeating in-process tasks that run one last time during graceful shutdown.

Queued jobs are structs that derive `Queueable`, with `handle` inside a `#[job]` block and automatic discovery. A job holding a model serializes only its primary key and reloads a fresh record before it runs. One queue API covers database, Redis, Amazon SQS and Laravel Cloud managed queues, with `Inject<T>` service injection, retries, middleware, chains and batches.

## What are durable workflows?

Workflows are the feature Laravel flags as brand new. Take an onboarding flow: send a welcome email, wait three days, then send tips if the user has not created a project. With queued jobs that means chained delayed jobs, status columns and sweep commands for stalled runs. A workflow replaces this with a single `async` function.

Workflows run on your existing queue workers, with no separate orchestration service. Each step runs once and its result is saved. The run suspends during sleeps and while waiting for an external webhook or approval link. Laravel says a workflow waiting two weeks uses no worker resources and survives deployments and worker restarts.

![A workflow timeline: welcome email, sleep three days, check project, send tips, with no worker used while waiting](https://media.daily.dev/image/upload/s--FqAtfpzl--/f_auto/v1796187547/ugc/content_5dc7f024-a738-4e18-acac-8a959f3cf394?_a=BAMAMiiw0)

## What else ships in the box?

- **Mail:** typed structs deriving `Mailable` render HTML and plain-text versions. Transports include Resend and Amazon SES, with failover, attachments and a local `log` mailer.
- **Broadcasting:** `#[event(broadcast(..))]` sends an event's `pub` fields over WebSockets, for example to `private-orders.{order_id}`. Private and presence channels are authorized in `src/routes/channels.rs`. A Pusher-protocol Reverb server written in Rust is included behind the `reverb` feature.
- **Inertia and views:** Inertia works with React, Vue and Svelte, with deferred and live props, prefetching, polling, flash data, history encryption and server-side rendering. Built-in views with layouts and Vite integration are the non-Inertia option.
- **Observability:** requests, queries, cache lookups, outgoing HTTP calls, jobs and console commands emit OpenTelemetry spans to any OTLP endpoint, such as Sentry, Grafana or Jaeger.
- **Extras and testing:** social login (Google, GitHub, Microsoft), feature flags and head metadata. Each `#[laravel::test]` boots an isolated in-memory app, cache and controllable clock without starting a server.

## How do you deploy it?

You install the new Laravel CLI and create an app; see the [installation guide](https://laravel.com/rust/docs/installation#installing-the-laravel-cli), especially if an older `laravel` CLI or Laravel Herd is installed. You can ship the compiled binary to your own servers or deploy to [Laravel Cloud](https://laravel.com/cloud/rust), which offers managed Postgres and MySQL, Valkey caches, scale-to-zero compute, managed queues, WebSockets and object storage.

## Should you try it?

The beta label matters. Laravel says the framework is near parity with Laravel PHP, not at parity, and the announcement lists no crate versions. A new project, an API-heavy service, or a workload with spiky traffic and long-running calls is a reasonable place to experiment. For an existing PHP app, the 18x figure is a reason to run your own benchmark, not to rewrite. Read the [documentation](https://laravel.com/rust/docs) for the areas this post skips: authentication, encryption, file storage, scheduling, console commands and package development.

## Sources

- [Introducing Laravel Rust](https://laravel.com/blog/introducing-laravel-for-rust), Laravel Blog, December 1, 2026
- [Laravel Rust documentation](https://laravel.com/rust/docs)
- [A Letter to the Laravel Community](https://laravel.com/blog/a-letter-to-the-laravel-community)
- [Laravel Rust benchmark](https://laravel.com/blog/laravel-rust-benchmark)

## Similar posts on daily.dev

- [A letter to the Laravel community](https://daily.dev/posts/a-letter-to-the-laravel-community-vtui72ej3) · Laravel · 0 upvotes · 1 comments

---

Tags: [#rust](https://daily.dev/tags/rust), [#laravel](https://daily.dev/tags/laravel)

[View this post on daily.dev](https://daily.dev/posts/laravel-rust-beta-a-full-stack-rust-framework-with-compile-time-guardrails-ymeyuxqxz)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"DiscussionForumPosting","mainEntityOfPage":"https://daily.dev/posts/laravel-rust-beta-a-full-stack-rust-framework-with-compile-time-guardrails-ymeyuxqxz","headline":"Laravel Rust Beta: A Full-Stack Rust Framework With Compile-Time Guardrails","text":"Laravel Rust is a new beta full-stack Rust framework built on Axum and Tokio, announced by Taylor Otwell, that moves checks for columns, relationships, inputs, authorization and secrets to compile time. Laravel reports it runs 18x faster than Laravel PHP in internal Laravel Cloud benchmarks, a vendor figure to verify yourself. The db::query! macro binds values as parameters instead of concatenating SQL. New durable workflows let one async function span days on existing queue workers. It is near, not at, feature parity with Laravel PHP.","url":"https://daily.dev/posts/laravel-rust-beta-a-full-stack-rust-framework-with-compile-time-guardrails-ymeyuxqxz","datePublished":"2026-12-02T05:41:00.200Z","dateModified":"2026-12-02T05:41:01.746Z","author":{"@type":"Person","name":"Anubhav Bhatt","url":"https://daily.dev/anubhavbhatt","image":"https://media.daily.dev/image/upload/s--btrq4aRY--/f_auto/v1776340073/avatars/avatar_pIiRJq3y7oFA7M8ZRPDG8?_a=BAMAMiWQ0","description":"Python + System Design | Turning Complex Ideas into Scalable Solutions","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":5950}},"image":"https://media.daily.dev/image/upload/s--A8CjXfT7--/f_auto,pg_1/v1796187597/posts/ymeyUxQxz?_a=BAMAMiiw0","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"isPartOf":{"@type":"WebPage","url":"https://daily.dev/sources/piirjq3y7ofa7m8zrpdg8","name":"Anubhav Bhatt"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Anubhav Bhatt","item":"https://daily.dev/sources/piirjq3y7ofa7m8zrpdg8"},{"@type":"ListItem","position":3,"name":"Laravel Rust Beta: A Full-Stack Rust Framework With Compile-Time Guardrails"}]}
```

