Laravel Go and Laravel Rust are official Laravel frameworks for Go and Rust, both in beta: Rust since December 1, 2026, Go since December 2. Install the Laravel CLI, then run laravel new with --go or --rust. Laravel PHP continues unchanged. Official; checked December 4.
What Laravel released on December 1 and 2
Taylor Otwell, the creator of Laravel, announced Laravel Rust on December 1 and Laravel Go a day later. Neither is a way to run PHP code faster. They are new frameworks that bring the Laravel way of building an application to two compiled languages. You write Go or Rust, not PHP.
The same week Laravel opened its hosting, Laravel Cloud, to other stacks, including Rails, Django, Node.js, Go and Rust, as described in the Cloud announcement. On the future of the original framework that post is short: “If you write PHP, nothing changes.”
Laravel Go vs Laravel Rust vs Laravel PHP
| Laravel PHP | Laravel Go | Laravel Rust | |
|---|---|---|---|
| Status | Stable | Beta since Dec 2, 2026 | Beta since Dec 1, 2026 |
| Built on | PHP | Standard net/http and goroutines | Axum and Tokio |
| Database layer | Eloquent | database/sql, typed models | SQLx, typed models |
| Server-rendered views | Blade | html/template | Jinja syntax |
| Dependencies | Composer | Go modules | Cargo |
| You deploy | PHP files and a runtime | A binary plus a few folders | A binary plus a few folders |
| Minimum version | PHP 8.3 (Laravel 13) | Go 1.27 | Rust 1.99 |
| License | MIT | MIT | MIT |
Both new frameworks ship routing, validation, middleware, models and migrations, caching (memory, database, Redis), file storage (local and S3-compatible), authentication, social login with Google, GitHub and Microsoft, notifications, queues, durable workflows, scheduled work, broadcasting over WebSockets, mail through Resend or Amazon SES, and OpenTelemetry tracing. New applications start with Inertia, React, TypeScript, Tailwind and Vite Plus; Inertia also works with Vue and Svelte. Every new project includes AGENTS.md and CLAUDE.md files for AI coding agents.
Plan for one thing before you estimate a project: there are no ready-made login screens. A new app has a User model, the users migration and session support, but the authentication docs leave the login, registration and logout routes and their pages to your application.
How to install the Laravel CLI (steps 1 and 2)
The whole setup is four steps: toolchain, Laravel CLI, new project, run. Step 1 is the language toolchain: Go 1.27 or later, or Rust 1.99 or later, plus Node.js (LTS) and Git. New projects use PostgreSQL by default, so have a server running locally or switch the driver as shown below.
# step 1: toolchain
go version # Go: 1.27 or later (go.dev/dl)
node -v && git --version # Node.js LTS and Git, for both
# Rust on macOS / Linux (on Windows use the installer from rustup.rs)
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
rustc --version # 1.99 or later; older? run: rustup updateStep 2 is the Laravel CLI, one command for both languages.
# macOS and Linux
curl -fsSL https://laravel.com/install.sh | sh
# open a new terminal, then
laravel --version # should start with "Laravel CLI"# Windows PowerShell
powershell -ExecutionPolicy Bypass -c "irm https://laravel.com/install.ps1 | iex"
# open a new window, then
laravel --versionThe installer puts the program into ~/.laravel/bin and adds it to your PATH. If you already have Herd or the old PHP installer, you may get the wrong laravel command. On Windows, move the .laravel\bin folder above the Herd or Composer folder in your user Path; on macOS and Linux move the installer's PATH line below theirs in your shell profile. Remove the old installer only if you no longer need it for PHP projects.
# which "laravel" runs: macOS / Linux
which -a laravel
# Windows PowerShell
Get-Command laravel -All
# remove the old PHP installer if it gets in the way
composer global remove laravel/installerHow to install Laravel Go (step 3 and 4)
Step 3 creates the project, step 4 runs it. The commands follow the Laravel Go installation page. The CLI creates .env, installs the frontend dependencies, compiles the app and generates APP_KEY.
# step 3: create the project
laravel new example-app --go
cd example-app
# step 4: database tables, then run
laravel migrate # users, sessions and queue tables
laravel dev # app + queue worker + Vite PlusOpen http://127.0.0.1:8000. The Go module is always named app. laravel route:list prints your routes and laravel list shows every command.
No PostgreSQL on your machine? Switch to SQLite before laravel migrate: in bootstrap/app.go replace postgres.Driver with sqlite.Driver, replace the go.laravel.com/db/postgres import with go.laravel.com/db/sqlite (an unused import stops the Go build), run go mod tidy and set DATABASE_URL=sqlite:storage/database.sqlite in .env. MySQL and MariaDB are supported too.
How to install Laravel Rust
The flow is identical, only the toolchain and the flag differ. See the Laravel Rust installation page. The long first compile happens inside laravel new.
# step 3: create the project (compiles the app, so be patient)
laravel new example-app --rust
cd example-app
# step 4: database tables, then run
laravel migrate
laravel devDatabase support is switched on with Cargo features: database-postgres, database-mysql and database-sqlite. To use SQLite, change this before laravel migrate:
# Cargo.toml: database-sqlite instead of database-postgres
# (keep the other features already listed in your line)
[dependencies]
laravel-rust = { version = "0.1", features = ["database-sqlite"] }
# .env
DB_CONNECTION=sqlite
DATABASE_URL=sqlite://storage/app/database.sqlite?mode=rwcWhat the code looks like
Routes
If you know Laravel, the shape is familiar: a routes file, verbs such as get and post, parameters in braces. The language underneath is fully Go or Rust, with types.
package routes
import (
"go.laravel.com/config"
"go.laravel.com/routing"
"go.laravel.com/web"
)
func Web(route *routing.Router, cfg *config.Config) {
route.Get("/greeting", func(r *web.Request) *web.Response {
return web.Text("Hello World")
})
}use laravel::prelude::*;
pub fn routes(route: &mut Router) {
route.get("/greeting", async || "Hello World");
}There are differences that surprise PHP developers. Laravel Go has no controller classes: routes point at plain functions in handlers/ packages. It also does not scan directories: commands, listeners, feature flags and jobs have to be listed in code. In Rust, a file without its mod line is skipped without a warning.
Queue jobs
A job is a struct with a handler. Both frameworks support the database, redis, sqs, sync and discard drivers, plus a cloud driver for Laravel Cloud. In Rust, redis needs the redis Cargo feature, while sqs and cloud need sqs. laravel dev starts a worker for you locally. The snippets below are excerpts without imports.
type ProcessPodcast struct {
PodcastID int64
}
func (j ProcessPodcast) Handle(ctx context.Context) error {
podcast, err := model.Find[models.Podcast](ctx, j.PodcastID)
if err != nil {
return err
}
return store.ProcessPodcast(ctx, podcast)
}In Go, a job you write by hand must also be added to jobs.All; laravel make:job does that for you. Rust discovers jobs automatically.
// jobs/jobs.go
var All = []any{
ProcessPodcast{},
}#[derive(Queueable)]
pub struct ProcessPodcast {
pub podcast_id: i64,
}
#[job]
impl ProcessPodcast {
async fn handle(self) -> laravel::Result<()> {
let podcast = Podcast::find_or_fail(self.podcast_id).await?;
// Process the uploaded podcast...
Ok(())
}
}Tests
Each language uses its own test runner instead of PHPUnit:
# Laravel Go
go test ./...
go test -race ./... # on CI
# Laravel Rust
cargo test
# frontend checks, both
npm run checkHow fast are they? Laravel's benchmark in context
These numbers come from Laravel's own benchmark, published December 1 and extended with Go on December 3. We have not reproduced them. The load grew from 1 to 2,000 requests per second over 20 minutes; the figure is the best ten-second window with no failed requests. Each app ran on a 4 GiB Laravel Cloud instance.
| Framework | Peak requests/s | p95 latency at peak, ms | CPU at a steady 50 requests/s |
|---|---|---|---|
| Laravel Rust | 1,774 | 112 | 4.2% |
| Rocket (Rust) | 1,623 | 173 | 4.4% |
| Beego (Go) | 1,596 | 685 | 5.2% |
| Laravel Go | 1,294 | 220 | 7.2% |
| Rails | 253 | 264 | 20.5% |
| Django | 183 | 946 | 28.1% |
| Laravel PHP | 97 | 2,634 | 52.4% |
Read it with four limits in mind:
- Tiny, read-only data. The MySQL database held 200 records and 10 authors. No writes, no uploads, no external APIs.
- The vendor ran it on its own hosting. The benchmark code is public, so you can repeat it.
- At normal load the gap in latency is small. At 50 requests per second the p95 was 93 ms for Rust, 96 ms for Go and 111 ms for PHP. The visible difference is CPU use.
- Builds cost time. The median cold build on Laravel Cloud was 27 seconds for PHP, about 1 minute for Go and about 3 minutes for Rust. On a local M4 laptop it was 8.7 seconds for Go and 19.4 for Rust, and incremental rebuilds took about a second.
- Memory differs too. At the steady 50 requests per second Laravel Rust used 16 MB, Laravel PHP 134 MB and Laravel Go 180 MB.
The practical reading: if your slow pages are slow because of database queries or third-party APIs, a new language will not fix them. Measure first.
How to deploy to your own server
You do not need Laravel Cloud. Both frameworks compile to a program that serves HTTP itself. The deployment guides start with a build:
# Laravel Go
npm run build
go build -o app .
GOOS=linux GOARCH=amd64 go build -o app . # cross-compile for a Linux server
# Laravel Rust
npm run build
cargo build --release # binary: target/release/example-appThe binary is not the whole delivery. Put public/ (with the built assets) and storage/ next to it, and bootstrap/ssr/ if you use server-side rendering. Rust also needs resources/views/; in Go the views are inside the binary. Start the program from that directory or set APP_BASE_PATH.
APP_ENV=production
APP_DEBUG=false
APP_KEY=base64:... # ./app (Rust: ./example-app) key:generate --show
APP_URL=https://example.com
DATABASE_URL=postgres://app:secret@db.internal/example# Go shown; for Rust replace ./app with ./example-app
./app migrate --force # before the new version takes requests
./app # web server, under systemd or similar
./app queue:work # worker, a separate process
./app queue:restart # on every deploy, both frameworks
# crontab
* * * * * cd /path/to/app && ./app schedule:run >> /dev/null 2>&1The server listens on 127.0.0.1:8000 unless you set SERVER_HOST and SERVER_PORT, which suits a setup with nginx or another proxy on the same machine. Behind a load balancer, tell the application to trust it (m.Proxies in Go, middleware.trust_proxies in Rust), otherwise you get the proxy's IP address instead of the visitor's. The address /up answers 200 once the app has started, so point your monitoring there. Run the web server and the worker under a process manager such as systemd.
The queue docs give a ready unit file for the worker, the same for both frameworks (set ExecStart to your binary). Make the stop timeout more than twice your longest job's timeout. queue:restart signals workers through the default cache store, so use a shared store such as database or redis. The Rust deployment guide describes its own file list.
# /etc/systemd/system/app-worker.service
[Unit]
Description=Queue worker
After=network.target
[Service]
WorkingDirectory=/srv/app
ExecStart=/srv/app/app queue:work --concurrency=4
Restart=always
KillSignal=SIGTERM
TimeoutStopSec=150
[Install]
WantedBy=multi-user.targetLaravel Cloud: price and managed queues
On Laravel Cloud, Go and Rust hosting starts at $5 a month on the Starter plan, which includes $5 of usage credit; Laravel says the first month is free. Apps that scale to zero pay no compute while asleep.
Both frameworks work with Cloud's managed queues: set QUEUE_CONNECTION=cloud, and in Laravel Rust also enable the sqs Cargo feature. Do not confuse this with ordinary Go services: for those, the Cloud pages describe background jobs on worker clusters.
Is Laravel dropping PHP? Should you migrate?
Laravel is not dropping PHP, according to its own announcement. For an existing site the sensible default is to stay where you are and keep it updated: see the PHP security update of November 2026 and our PHP 8.6 upgrade guide.
We found no migration tool and no migration guide from Laravel PHP. Moving means rewriting handlers, models, jobs, templates and tests in another language, and replacing every Composer package. Laravel does suggest one gradual path on its Cloud: a PHP app and a Rust app can run side by side in the same organization and region and use the same database, so you can move only the busiest part.
| Your case | What we would do |
|---|---|
| Working Laravel PHP site, no load problems | Stay. Update PHP and dependencies |
| One endpoint eats most of the CPU | Profile it; if the code itself is the limit, prototype that part separately |
| New side project, you know Go or Rust | Try the beta and expect breaking changes |
| Client project with a deadline this month | Use a stable stack |
| Team knows only PHP | Do not switch for benchmark numbers |
Laravel Go, Goravel, Gin: do not mix them up
- Laravel Go is the official framework. Imports start with
go.laravel.com/and projects are created by the Laravel CLI. - Goravel is an independent open-source framework with a Laravel-like structure. It existed before and has its own releases and documentation.
- Gin and similar libraries are lighter Go web frameworks without the full set of queues, mail and scheduling built in. Because Laravel Go sits on net/http, standard net/http handlers and middleware plug into it; code written for Gin's own handler type is not the same thing.
Search results will mix these for a while. Look at the import paths and the install command before you follow a tutorial. If the API-only, no-interface side of this interests you, we explain it in what headless software is.
A one-hour test before you decide
- Create a throwaway project with the commands above and open the start page.
- Rebuild one real endpoint from your product, including its database query.
- Add one queued job, for example an email, and check what happens when it fails.
- Write one test and run it in your CI, noting the build time.
- List the Composer packages you depend on and find a Go or Rust replacement for each. The ones without a replacement are your real migration cost.
Pin the framework version you tested and read the release notes before every update: until 1.0, an update can change APIs and configuration.
Frequently asked questions
What is Laravel Go?
Laravel Go is an official, MIT-licensed web framework from the Laravel team written in idiomatic Go. It is built directly on the standard net/http package and includes routing, models, migrations, queues, mail, authentication and an Inertia frontend. The first beta was released on December 2, 2026.
Does Laravel Rust or Laravel Go replace Laravel PHP?
No. Laravel states that Laravel PHP stays fully maintained and supported, and that nothing changes for PHP developers. The Go and Rust frameworks are additional options. We found no end-of-life or deprecation statement for the PHP framework on the official pages.
Can I use Laravel Go or Laravel Rust in production?
Technically you can, but both are betas, and the documentation warns that releases before 1.0 may include breaking changes to APIs and configuration. Laravel plans to call the Rust version stable after about six to eight weeks of feedback. We found no date for a stable Go release.
Do Composer packages work with the new frameworks?
The official pages we read promise no compatibility with PHP packages. Composer packages are PHP code, while these apps compile to native Go or Rust binaries, so plan on Go modules or Cargo crates instead. In Laravel Go, standard net/http handlers and middleware plug straight in.
Which is faster, Laravel Go or Laravel Rust?
In Laravel's own benchmark, Laravel Rust peaked at 1,774 requests per second and Laravel Go at 1,294, against 97 for Laravel PHP. The test used a read-only API with 200 records on Laravel Cloud, so treat the figures as a vendor measurement and benchmark your own workload.
Is Laravel Go the same as Goravel?
No. Goravel is a separate community project with a Laravel-like structure for Go, and its website claims no affiliation with Laravel. Laravel Go is published by the Laravel team and installed with the official Laravel CLI. Check which one a tutorial describes before copying commands.
Is Laravel Cloud required, and is it free?
Not required: both frameworks build to a binary you can run on your own server. Hosting on Laravel Cloud starts at 5 dollars a month on the Starter plan, which includes 5 dollars of usage credit, with the first month free according to Laravel. The frameworks themselves are open source.
