techweb24.dev
README.md

Laravel Rust vs Laravel Go: What's New, How to Install, and Should You Leave PHP?

Laravel Rust and Laravel Go: is Laravel 18x faster than PHP?

Laravel is no longer only a PHP framework. On 1 December 2026 Laravel released Laravel Rust in beta, and a day later, on 2 December, it followed with Laravel Go. Both bring Laravel's routing, models, queues, auth and Inertia to a compiled language. This guide covers what each one is, how they compare with Laravel PHP, what the "18x faster" benchmark really measured, how to install them, and whether you should switch.

Short version: Laravel Rust and Laravel Go are official, open-source (MIT) beta frameworks from the Laravel team, not wrappers around PHP. Laravel's own benchmark showed Laravel Rust at 1,774 vs 97 requests per second against Laravel PHP, but on a deliberately tiny app, and other compiled frameworks scored almost the same. Laravel PHP is not being retired. Try Rust or Go on a new, performance-sensitive project; don't rewrite a working PHP app yet.

Watch: the 8-minute breakdown

If you'd rather watch than read, this video covers the Laravel Rust launch, the benchmark fine print and the "is PHP dead?" question.

What is Laravel Rust?

Laravel Rust is a full-stack web framework written from scratch in Rust, built on Tokio and Axum. Laravel describes it as "Laravel reimagined in idiomatic Rust", not a line-by-line port. It ships with:

  • Routing, middleware, sessions, validation, authentication and authorization
  • A typed ORM with relationships, migrations for PostgreSQL, MySQL, MariaDB and SQLite, and raw queries that are parameterized at compile time
  • Queues on the database, Redis or Amazon SQS, plus a scheduler and durable workflows that survive deploys and restarts
  • Mail, notifications, real-time broadcasting and a built-in Reverb WebSocket server
  • Inertia for React, Vue and Svelte frontends, plus server-rendered templates
  • Automatic OpenTelemetry tracing, social login, feature flags and parallel full-stack tests

The part that matters most is compile-time safety. Laravel says column names, relationships, validated inputs, authorization checks and secret values are verified when your code compiles. A few examples from the announcement:

  • Comparing a column to the wrong type fails the build before any query runs.
  • Every input struct must declare who may submit it, or the code does not compile.
  • Inputs only fill the fields you declare, so extra fields a client sends are ignored (no mass-assignment bugs).
  • Password types are redacted in logs and can't be serialized into JSON by accident.
  • Relationships are never lazy-loaded silently, which blocks accidental N+1 queries.

Taylor Otwell says he built it in about two months with heavy use of cloud coding agents, while hand-curating every API and documentation page. Laravel plans a stable release after roughly six to eight weeks of beta feedback.

What is Laravel Go?

Laravel Go is the same idea for Go. It is built directly on Go's standard net/http package and goroutines, with no third-party web framework underneath. Your application is an http.Handler, so existing Go handlers and middleware plug straight in, and dependencies are wired explicitly in services/services.go instead of a hidden container.

Feature-wise it mirrors Laravel Rust: routing, typed validation structs, models with eager loading, migrations, queues, durable workflows, mail, broadcasting with a Go-based Reverb server, Inertia and OpenTelemetry. In Otwell's words, compared with Laravel Rust it trades a little "magic" syntax and raw top-end speed for "very similar real-world speed and throughput", much faster compile times, less disk use and simpler syntax. Laravel says Go also delivers "an order-of-magnitude jump in performance" over Laravel PHP, but it has not published a separate Go benchmark yet.

Laravel Rust vs Laravel Go vs Laravel PHP

Laravel PHPLaravel RustLaravel Go
StatusStable, actively developedBeta (since 1 Dec 2026)Beta (since 2 Dec 2026)
FoundationPHPTokio + AxumGo standard library net/http
Toolchain neededPHP + ComposerRust 1.99 or laterGo 1.27 or later
Throughput (Laravel's test)97 req/s peak1,774 req/s peakNot published yet
Build timeFastest (27 s median cold build on Laravel Cloud)Slowest (about 3 min median cold build on Laravel Cloud; about 1 s small local rebuilds)"Super fast" compiles, per Laravel
Compile-time checksNo (runtime)Strongest: types, macros, compile-time SQLStrong: Go types, struct-pointer field references
FrontendInertia, Blade, LivewireInertia (React, Vue, Svelte), Jinja-style templatesInertia (React, Vue, Svelte), server-rendered views
Deploys asPHP appOne compiled binaryOne compiled binary
LicenseMITMITMIT

Is Laravel Rust really 18x faster than PHP?

In Laravel's own benchmark, yes, but read the fine print. Laravel built the same small app (two endpoints listing and fetching short posts) in six frameworks, deployed each on identical Laravel Cloud instances and ramped traffic from 1 to 2,000 requests per second over 20 minutes. The best 10-second window with zero failed requests:

FrameworkPeak successful req/s
Laravel Rust1,774
Rocket (Rust)1,623
Beego (Go)1,596
Rails253
Django183
Laravel PHP97

What that tells you:

  • It's mostly compiled vs interpreted. Rocket and Beego landed close to Laravel Rust. The gap is the language and runtime more than Laravel itself.
  • The app was deliberately tiny: 200 rows and 10 authors in MySQL. Laravel itself warns that results for more complex apps will differ.
  • At normal load, latency is similar. At a steady 50 req/s, median latency was 62 ms for Laravel Rust and 78 ms for Laravel PHP. The real difference was CPU (about 4% vs 52%) and memory (16 MB vs 134 MB), which means fewer servers for the same traffic.
  • Wake from scale-to-zero took a median 154 ms for Laravel Rust vs 712 ms for Laravel PHP.
  • Builds are slower. A cold build on Laravel Cloud took a median of about 3 minutes for Rust vs 27 seconds for PHP, so your CI pipeline will feel it.
Bottom line: "18x faster" is accurate for that test, but it's a peak-throughput number on a toy app. Expect large CPU and memory savings under load, not 18x faster page loads for your users.

Why is Laravel moving to compiled languages?

In a letter to the Laravel community, Otwell asks how many ambitious new projects will choose PHP in a world where AI agents write more and more of the code. His answer is that conventions and guardrails matter more than human-friendly syntax, and he calls programming languages "an implementation detail" of the Laravel philosophy.

That's why every new Laravel Rust and Laravel Go app ships with an AGENTS.md, a CLAUDE.md, focused agent skills and version-matched docs bundled on disk. A strict compiler turns many mistakes an AI agent might make into build errors instead of production bugs.

How to install Laravel Rust or Laravel Go

Both use the same new Laravel CLI. You also need Node.js (for the frontend) and Git. Start with the language toolchain:

# Rust (for Laravel Rust): needs Rust 1.99 or later
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

# Go (for Laravel Go): needs Go 1.27 or later
# download the installer from https://go.dev/dl/, then check:
go version

Install the Laravel CLI on macOS or Linux:

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

On Windows, run this in PowerShell instead:

powershell -ExecutionPolicy Bypass -c "irm https://laravel.com/install.ps1 | iex"

Open a new terminal and confirm you're running the new CLI. The output should start with Laravel CLI:

laravel --version
Using Laravel Herd or the old Composer installer? Both also provide a laravel command. If laravel --version shows a different installer, move the ~/.laravel/bin line in your shell profile below the Herd or Composer entries, or run which -a laravel to see which one wins.

Create an app. Pass --rust or --go, or leave the flag off and choose the language when asked:

laravel new example-app --rust   # or: --go
cd example-app

New apps default to a local PostgreSQL database named laravel (SQLite and MySQL are supported too; see the docs). Run the migrations, then start the app, a queue worker and Vite together:

laravel migrate
laravel dev

Open http://127.0.0.1:8000 to see the welcome page. New projects come with Inertia, React, TypeScript and Tailwind preconfigured.

Security tip: install only from laravel.com, github.com/laravel/rust and the official docs. Big launches attract copycat packages and look-alike accounts, so double-check any install script or crate you didn't find through laravel.com.

Should you switch from Laravel PHP?

  • Starting a new project where performance or server cost matters (high-traffic APIs, real-time features, heavy queues): worth trying Rust or Go now. Pick Go if you value fast builds and simple syntax, Rust if you want the strictest compile-time checks and the highest throughput.
  • Running a large, stable Laravel PHP app: don't rewrite it during a beta. Prototype on the side and watch for the stable release.
  • Want both? On Laravel Cloud, a PHP app and a Rust app can run side by side in the same organization and share a database in the same region, so you can move only the busiest endpoints.
  • Worried about your career as a Laravel developer? Routes, models, queues and policies all carry over. This is the easiest on-ramp to Rust or Go a PHP developer has had.

My take: I've built Laravel apps for years, including a learning platform that serves well over a hundred thousand learners. For a production system like that, wait for the stable release. For a new API or real-time service, Laravel Go's fast build loop makes it the easiest of the two to try first; reach for Laravel Rust when raw throughput or the strictest compile-time checks matter most.

Is PHP dead?

No. Otwell wrote that Laravel PHP "is not going anywhere, and it is not entering maintenance mode." Weekly releases continue, both stacks will be developed in parallel, and Laravel PHP got new AI tools, Agent Kit and Converse, the same week. If you stay on PHP, keep it patched: see the PHP security release from November 2026.

FAQ

Is Laravel Rust production-ready?

Not yet. It's a beta, and releases before 1.0 may include breaking changes. Laravel plans to call it stable after about six to eight weeks of feedback from the 1 December 2026 launch.

Do I need to know Rust or Go to use them?

It helps, but the Laravel concepts (routes, models, validation, queues) carry over. Laravel also designed both for a workflow where coding agents write much of the code and the compiler checks it.

Is Laravel Go faster than Laravel Rust?

Laravel says Go gives "very similar real-world speed and throughput" with a slightly lower top end, in exchange for much faster compiles. Laravel hasn't published Go benchmark numbers yet.

Can I use React or Vue with Laravel Rust and Laravel Go?

Yes. Both include Inertia with React, Vue and Svelte, including server-side rendering, deferred props and live props, so you don't need a separate API.

Is Laravel Rust free and open source?

Yes. Laravel Rust and Laravel Go are open source under the MIT license, like Laravel PHP. You can deploy them on any Linux server or on Laravel Cloud.

Sources: Introducing Laravel Rust, Introducing Laravel Go, Laravel Rust benchmark, A letter to the Laravel community, Laravel Cloud for every framework, Laravel Rust installation docs, Laravel Go installation docs.

Zubaer Ahammed

Full-stack & Android developer from Bangladesh. Builds web platforms and apps and writes practical tutorials here. zubaer.com

Comments