Today we are releasing the first beta of Laravel Rust, bringing the full-stack philosophy and feature set of Laravel to Rust, including routing, middleware, sessions, authentication, database models, queues, mail, workflows, and testing helpers.
Laravel Rust is not a blind port of Laravel to Rust. It is Laravel reimagined in idiomatic Rust for a modern, high-performance stack, thoughtfully curated for a great developer experience when building with AI. Every new application ships with built-in agent skills that guide coding agents on how to write and test idiomatic Laravel Rust code.
Laravel Rust is built with the forward-looking perspective that humans will increasingly neither write nor manually read application code at scale. In that world, strong guardrails, strict compilers, and batteries-included conventions matter more than ever.
Laravel Rust brings the battle-tested conventions, philosophy, and productivity of Laravel to Rust as a high-performance full-stack framework built to thrive in the AI age, giving you a solid foundation to build the most ambitious, mission-critical web applications of the future.
Today, Laravel Rust is near feature parity to Laravel PHP, and the small gaps that remain will be closed within the coming weeks.
There is far too much in this release to cover in a single blog post, so the sections below walk through only some of the highlights. To explore everything Laravel Rust includes, from authentication, encryption, and file storage to task scheduling, console commands, and package development, dig into the full Laravel Rust documentation.
Extreme performance and async to the core
In our internal benchmarks on Laravel Cloud, Laravel Rust runs 18x faster than Laravel PHP while using significantly less CPU and memory, significantly decreasing infrastructure cost, tail latency, and increasing how much traffic a single instance can absorb during a spike.
Laravel Rust is built end-to-end on Axum and Tokio, so the entire stack is asynchronous at its core: HTTP handlers, middleware, database queries, the HTTP client, Redis, queues, S3, SQS, and WebSockets are all non-blocking, and blocking work such as bcrypt password hashing and local disk I/O is offloaded onto Tokio's blocking thread pool. When one request waits on a slow database query, a third-party webhook, or a long-running AI API call, those same threads keep serving thousands of other requests, background tasks, and queue jobs without stalling.
Rust's type system unlocks huge improvements across the framework. Database column names, relationships, validated form inputs, authorization checks, and secret values are verified at compile time before your code reaches production.
Routing and handlers
When someone visits a page or submits a form, Laravel matches the request against the routes you register in src/routes/web.rs and src/routes/api.rs. You can start with inline closures, use route model binding to load a record directly from a URI segment, and move larger endpoints into handler modules under src/http/handlers/:
When a request hits /users/42, Laravel loads user 42 and passes it to the route, or responds with a 404 if no matching user exists. URLs to routes can be generated from their handler functions through macros such as route!(posts::show, &post) and redirect!(posts::show, &post), so renaming a path never leaves broken string URLs behind and is checked at compile time. To learn more, check out the routing guide.
Typed validation and form structs
In Laravel Rust, you describe incoming form and JSON payloads as Rust structs annotated with #[laravel::input] and field-level #[validate(...)] rules. Adding fills = Post turns the struct into a fill struct for your Post model:
Several guarantees are built directly into the types:
- Explicit authorization: Every request input struct must declare who may submit it (
anyone,authenticated, or a customauthorizefunction), or the code will not compile. - Guaranteed validation before your handler runs: Your handler only executes once the request fits the struct and passes every rule. If validation fails, Laravel redirects browsers back to the form with the errors and returns a
422JSON response to API clients. - No mass-assignment bugs: Because
..inputonly fills the columns declared onStorePost, extra fields sent by a client are ignored automatically. - Partial updates and redacted secrets: Use
Sometimes<T>onPATCHor Inertia forms to distinguish omitted fields from explicitnullvalues, and usePasswordandPasswordHashtypes so plain-text passwords stay redacted in logs and password hashes cannot be serialized into JSON or Inertia responses by accident.
To learn more, check out the validation guide.
Models, relationships, and eager loading
Models are Rust structs annotated with #[model], where each field maps to a database column and relationships are declared with attributes such as #[belongs_to] and #[has_many]:
Models support typed enum columns (db::Enum), typed JSON columns (db::Json), and multi-column embedded value objects (db::Embed). When you query a model, column names, operators, and value types are checked by the compiler, and you can combine conditions directly with &, |, and ! instead of nesting where closures:
Laravel compiles that filter into properly parenthesized, parameterized SQL for your database driver, so nested AND and OR precedence always stays exact:
Relationships are never silently lazy-loaded behind the scenes. You load what a page needs up front with with, preventing accidental N+1 queries by design. To learn more, check out the models and model relationships guides.
Schema builder, migrations, and raw queries
Database migrations are Rust files in database/migrations/ that compile directly into your application binary, so a deployed server can run migrate without shipping your source files. Inside each migration, the fluent schema builder generates the right SQL for PostgreSQL, MySQL, MariaDB, or SQLite automatically:
Migrations run inside a transaction on PostgreSQL and SQLite, and framework tables such as queues, cache, feature flags, and workflows can be created with a single macro line (such as laravel::queue::tables!()). To learn more, check out the migrations guide.
When you want to drop down to raw SQL for a complex report or database-specific feature, the db::query! macro lets you write SQL directly and capture Rust variables, fields, and collections right inside braces:
Even though {active} and {...roles} look like string interpolation, db::query! never concatenates values into your SQL string. At compile time, the macro turns every capture into a real bound query parameter for your database driver, expanding lists into one parameter per item and even expanding structs into bulk VALUES {...users(name, email)} inserts while preventing SQL injection by construction. To learn more, check out the database guide.
Async concurrency, background work, and ticks
When a handler needs several independent pieces of data, such as counts for a dashboard or responses from multiple services, running them sequentially wastes time. Built-in helpers in laravel::task let you run operations concurrently while propagating your application context and tracing span automatically:
Alongside task::try_join!, the laravel::task module includes task::select! for racing competing calls, task::spawn_blocking for CPU-heavy work, and task::background for lightweight tasks that can run after your HTTP response returns.
For state that lives inside each running process, such as buffered metrics or view counts, you may register repeating in-process ticks that run on an interval and execute one final time during graceful shutdown:
To learn more, check out the concurrency and tasks guide.
Queued jobs
For work that should run reliably outside the request lifecycle, define a struct deriving Queueable and implement handle inside a #[job] block. Laravel discovers jobs automatically, so there is nothing to register:
Dispatch the job from anywhere in your application:
Notice that ProcessPodcast stores the Podcast model directly. When dispatched, Laravel serializes only the model's primary key and reloads a fresh record before handle runs.
Queues share one unified API across the database, Redis, Amazon SQS, and Laravel Cloud managed queue drivers, complete with service injection via Inject<T>, retries, job middleware, chains, and batches. To learn more, check out the queues guide.
Durable, fault-tolerant workflows
Durable workflows are brand new in Laravel. Some application flows span days or weeks rather than milliseconds. Onboarding a new user might involve sending a welcome email, waiting three days, and sending getting-started tips if they have not created a project yet. Building that with queued jobs alone requires chaining delayed jobs, tracking progress in status columns, and writing sweep commands for stalled runs.
Workflows let you write the entire multi-day flow as a single async function:
Workflows run on your existing queue workers with no separate orchestration service to deploy. Laravel executes each step once, saves its result, and suspends the run while sleeping or waiting on an external webhook or approval link. A workflow waiting for two weeks consumes no worker resources in the meantime, and resumes cleanly across deployments and worker restarts. To learn more, check out the workflows guide.
Transactional email uses typed mailable structs deriving Mailable. Each field is passed directly to its template, and Laravel renders both the HTML email and a matching plain-text version automatically:
Send or queue a mailable in one line, or return it directly from a local development route to preview the rendered email in your browser:
Laravel ships with first-party Resend and Amazon SES transports, mailer failover, attachments, and a local log mailer for development. To learn more, check out the mail guide.
Event broadcasting and WebSockets
When an order updates, a deployment finishes, or a teammate joins a page, your application can push those updates to browsers in real time instead of polling your server. Any event can broadcast over WebSockets by adding #[event(broadcast(..))]:
Dispatch the event as you normally would (OrderUpdated { .. }.dispatch().await?), and Laravel broadcasts its pub fields to private-orders.{order_id} while leaving pub(crate) and private fields off the wire. Authorize private and presence channels in src/routes/channels.rs using the same route model binding and extractors as your HTTP handlers:
On the frontend, subscribe to the private channel and handle incoming events with Laravel Echo's useEcho React hook:
A Reverb WebSocket server written in Rust is included directly with the framework. Enable the reverb feature and run laravel reverb:start to develop realtime features locally with Laravel Echo over the Pusher protocol, then switch your environment variables to managed Reverb on Laravel Cloud when you deploy to production. To learn more, check out the broadcasting and WebSockets guides.
Inertia.js and server-side views
Laravel Rust includes full Inertia support for building modern React, Vue, and Svelte frontends without maintaining a separate JSON API. That includes deferred props, live props, prefetching, polling, flash data, history encryption, and server-side rendering.
Live props pair Inertia directly with event broadcasting so a page refreshes automatically whenever a matching broadcast event fires, while deferred props keep expensive secondary data from delaying the initial render:
Of course, if your application prefers server-rendered HTML, Laravel Rust also includes built-in views and templates with layouts, components, and Vite asset integration.
Everything else built in
Alongside the core features above, Laravel Rust ships with the production tools modern web applications reach for right away:
- Automatic OpenTelemetry tracing: Incoming requests, database queries, cache lookups, outgoing HTTP calls, queued jobs, and console commands emit timed OpenTelemetry spans automatically. Point your
.envfile at an OTLP endpoint, and traces flow to Sentry, Grafana, or Jaeger without manual instrumentation. - Social login, feature flags, and head metadata: OAuth login for Google, GitHub, and Microsoft, persistent feature flags for gradual rollouts, and server-rendered
<head>tags for both views and Inertia pages are built directly into the framework. - Isolated full-stack testing: Every
#[laravel::test]boots an isolated in-memory application, cache, and controllable clock, so you can exercise your full HTTP stack, fakes, and time-dependent logic without starting a server:
Getting started
Install the brand-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 instructions.
When you are ready to ship, you may deploy your compiled binary on your own servers or push straight to Laravel Cloud for managed Postgres and MySQL databases, Valkey caches, scale-to-zero compute, managed queues, WebSockets, object storage, and more.
To dive deeper, head over to the Laravel Rust documentation.