Laravel Go Enters Beta: A Full-Stack Go Framework From the Laravel Team
On December 2, 2026, Taylor Otwell released the first beta of Laravel Go. It landed one day after Laravel Rust, and together they mark the first time the Laravel team has carried the framework's conventions into other languages.
Laravel Go is a full-stack web framework for Go. It ships routing, middleware, sessions, authentication, database models, queues, mail, durable workflows, and testing helpers, and it sits directly on Go's standard net/http package. It is MIT licensed and pre-1.0, so the docs warn that releases before 1.0 may break APIs and configuration.
Why Laravel is going beyond PHP
Taylor explained the thinking in a letter to the community the day Laravel Rust shipped. His question was simple. Laravel was built to make writing code by hand pleasant, so what happens to a framework like that when people increasingly neither write nor read code by hand?
His answer was to take Laravel's philosophy, not its syntax, to languages that suit the age of AI-assisted development. In his words, "Programming languages are an implementation detail of that philosophy." He was also clear that Laravel PHP is not going into maintenance mode. Weekly releases continue, and both frameworks will be developed in parallel.
If you want the broader context on the Rust side, we covered it in Laravel Releases Laravel Rust and Much More, and PHP Architect wrote about what a polyglot Laravel Cloud means.
Why Go, when Rust already exists
Taylor says Rust and Go were the two languages that came to mind. Both are fast, type-safe, and compiled. The difference is the trade.
Compared to Laravel Rust, Laravel Go gives up some of the macro-style "magic" and a sliver of top-end speed ("barely!", in his words). In return you get very fast compile times, much smaller disk use, and plain Go syntax that reads well for humans and coding agents alike.
Taylor also points out that Go is one of the most widely deployed backend languages, yet it has never had a definitive, batteries-included, full-stack framework that pairs cleanly with a modern frontend through Inertia. Laravel is aiming at that gap.
Go developers already had Laravel-flavored options. Goravel, an independent MIT-licensed project, has brought Laravel's ideas to Go for years, according to one early comparison. Laravel Go does not replace it. It is now an official choice alongside it.
Go for PHP developers
You do not need to be a Go expert to follow the rest of this post, but a handful of language ideas explain much of Laravel Go's design.
A Go program builds into a single executable, and Laravel Go leans into that. Migrations, seeders, and views compile into the same binary, so a deployed server can run migrate without your source tree sitting on it.
Go is also statically typed, and it has had generics since Go 1.18. Laravel Go uses them in its query builder, so a query like model.Query[models.Article]() hands back a typed slice instead of a loose array.
The concurrency model is the bigger change. In a typical PHP-FPM setup, each worker handles one request at a time. A goroutine is a function running concurrently with others in the same address space, and Effective Go describes it as lightweight, costing little more than stack space. Goroutines are multiplexed onto OS threads, so when one blocks on I/O the others keep running. Laravel Go starts every request in its own goroutine, which means a slow query or a long AI API call does not stall its neighbors.
Go has no exceptions. Functions return an error next to their result, and you check it. That is why Laravel Go handlers return a response, and on failure hand the error to web.Fail(err).
Request state travels through a context.Context: cancellation, deadlines, and request-scoped values. Laravel Go uses it for application state, the signed-in user, tracing spans, and database transactions, instead of hiding them behind a dynamic container.
Finally, gofmt, go vet, and go test ship with the language, and Laravel's docs list them as the standard verification commands for a new app.
Laravel Go needs Go 1.27 or later. That release arrived on August 19, 2026, and the Go team's announcement highlights generic methods, the encoding/json/v2 package, a native uuid package, and the goroutineleak profile reaching general availability for finding permanently blocked goroutines. It also cuts small-object allocation costs by up to 30%.
Built directly on net/http
This is the design choice Go developers will care about most. Laravel Go has no third-party web framework underneath. Your application is an http.Handler, and *web.Request embeds the standard *http.Request. Existing Go handlers and middleware plug straight in.
Shared dependencies are wired once at startup in services/services.go and read back with services.From(ctx). Nothing is resolved by a magic container behind your back. If you come from Laravel PHP, that is the biggest mental shift: the framework is just as full-featured, but the wiring is explicit.
A tour of the features
Routing and handlers
Routes live in routes/web.go and routes/api.go, and they point at ordinary Go functions. Here is a small example for a magazine site:
package routes
import (
"go.laravel.com/config"
"go.laravel.com/routing"
"app/handlers/articles"
)
func Web(route *routing.Router, cfg *config.Config) {
route.Get("/articles", articles.Index).Name("articles.index")
route.Get("/articles/{article}", articles.Show).Name("articles.show")
}
And the handlers behind them:
package articles
import (
"go.laravel.com/model"
"go.laravel.com/web"
"app/models"
)
func Index(r *web.Request) *web.Response {
articles, err := model.Query[models.Article]().
Where("views", ">", 1000).
Get(r)
if err != nil {
return web.Fail(err)
}
return web.JSON(articles)
}
func Show(r *web.Request) *web.Response {
article, err := model.FromRoute[models.Article](r, "article")
if err != nil {
return web.Fail(err)
}
return web.JSON(article)
}
Route groups, middleware, named route URLs, and route model binding are all there. model.FromRoute loads the record for you or responds with a 404.
Typed validation
Incoming form and JSON payloads are plain structs. You add a Rules method and reference each field by pointer:
type StoreArticle struct {
Title string `json:"title"`
Body string `json:"body"`
}
func (f *StoreArticle) Rules() validation.Rules {
return validation.For(f,
rule.Field(&f.Title, rule.Required, rule.Max(120), model.Unique[models.Article]()),
rule.Field(&f.Body, rule.Required),
)
}
In a handler, form, err := r.Validate[StoreArticle]() binds the request, enforces each field's Go type, and checks every rule. If it fails, browsers are redirected back with errors and API clients get a 422. Because fields are referenced by pointer, a misspelled field name fails to compile instead of failing in production.
A form can also have an optional Authorize method. Validate runs it first, so a stranger who submits the form sees a 403 instead of validation errors.
Models and eager loading
Models are structs, and relationships are declared with a model struct tag. A fragment looks like this:
type Article struct {
// Other columns omitted.
User *User `json:"user,omitzero" model:"belongs_to"`
Comments []Comment `json:"comments,omitzero" model:"has_many"`
}
Reading a relationship never runs a hidden query. You load what a page needs up front, and a loop over articles cannot quietly trigger one query per row:
articles, err := model.Query[models.Article]().
With("user").
Latest("created_at").
Get(r)
Column and relationship names are checked against the model when you build the query. A typo panics during tests with a list of the valid names, which is loud and early, though it still needs a test to run that query.
Migrations are Go functions with a fluent schema builder that targets PostgreSQL, MySQL, MariaDB, or SQLite. New apps default to PostgreSQL, and switching drivers means editing the driver list in bootstrap/app.go.
Concurrency that feels like Laravel
The task package runs independent work concurrently and carries your application, user, and trace along automatically:
func Overview(r *web.Request) *web.Response {
articles, subscribers, err := task.Both(r,
func(ctx context.Context) (int, error) { return db.Table("articles").Count(ctx) },
func(ctx context.Context) (int, error) { return db.Table("subscribers").Count(ctx) },
)
if err != nil {
return web.Fail(err)
}
return web.JSON(map[string]int{"articles": articles, "subscribers": subscribers})
}
If one function fails, the others' contexts are cancelled so in-flight work stops early. A panic inside a task comes back as an error instead of killing the whole process, which the docs point out is the difference from a bare go statement.
There is more in the same package: task.Run, task.First for racing two services, task.Map and task.Each with a concurrency limit, and task.Timeout. For work the user does not need to wait on, r.Background runs after the response is sent and still finishes during a graceful shutdown. The docs are careful about one limit: background work is not retried and a crash loses it, so use a queued job for anything that must succeed, like charging a card.
Repeating in-process "ticks" round this out. They flush buffered state on an interval and once more on shutdown.
Queues and durable workflows
A queued job is a struct with a Handle(ctx context.Context) error method:
type SendDigest struct {
SubscriberID int64
}
func (j SendDigest) Handle(ctx context.Context) error {
// Load the subscriber, build the digest, send it.
return nil
}
Queues share one API across the database, Redis, Amazon SQS, and Laravel Cloud managed queues, with retries, job middleware, chains, and batches. Tag a model field with queue:"model" and only its ID goes on the queue. A fresh record is reloaded before Handle runs.
The newest idea is durable workflows. Some flows take days. Think of a reviewer request, a week of waiting, then a reminder. Instead of chaining delayed jobs and writing sweep commands, you write the whole thing as one method:
func (w ReviewArticle) Handle(run *workflow.Run) error {
if err := run.Do("request review", w.requestReview); err != nil {
return err
}
if err := run.Sleep(7 * 24 * time.Hour); err != nil {
return err
}
return run.Do("send reminder", w.sendReminder)
}
Each step runs once and its result is saved. The run suspends while it sleeps or waits on a webhook, and a workflow waiting two weeks uses no worker resources. It survives deploys and worker restarts. Workflows run on your existing queue workers, so there is no separate orchestration service to deploy.
Inertia, views, and real-time
Laravel Go includes full Inertia support for React, Vue, and Svelte, covering deferred props, live props, prefetching, polling, flash data, history encryption, and server-side rendering. New projects come set up with TypeScript, Tailwind CSS, and Vite Plus. If you prefer server-rendered HTML, built-in views compile into the binary and use Go's html/template, which also pairs well with HTMX.
Real-time is covered too. Any event can broadcast over WebSockets by adding a BroadcastOn method, and a Reverb server written in Go ships with the framework. Run laravel reverb:start locally, then switch to managed Reverb on Laravel Cloud in production. Live props tie the two together, so a page refreshes a prop when a matching event fires.
Everything else
The beta also includes mail with Resend and Amazon SES transports, authentication with email verification, social login for Google, GitHub, and Microsoft, authorization policies, notifications, a cache, file storage with S3-compatible disks, feature flags, task scheduling, and automatic OpenTelemetry tracing that can flow to Sentry, Grafana, or Jaeger. Testing uses standard go test functions with tests.New(t), which boots an isolated in-memory application, cache, and controllable clock so you can exercise the full HTTP stack without starting a server.
Built for coding agents
Every new app ships with an AGENTS.md, a CLAUDE.md that imports it, and a set of focused skills under .agents/skills/ covering models, validation, authorization, queues, Inertia, testing, and upgrades. The go.laravel.com module also bundles the Markdown docs for the exact version in your go.mod, so an agent can read the real guides from disk instead of guessing from training data.
The docs describe pairing this with cloud agents such as Amp, Cursor, and Devin, using Go's fast compiler and test suite as the objective feedback loop. Whether that suits your team is a separate question, but it is clearly a first-class design goal. (The skill count differs between sources: the docs list eight, while the landing page file tree shows seven.)
What the early benchmarks say
The announcement itself made a general claim of an order-of-magnitude jump over Laravel PHP and published no numbers. A day later, Laravel added Go to its benchmark post, which tests seven frameworks on Laravel Cloud. Here are the Laravel-family results:
| Metric | Laravel PHP | Laravel Go | Laravel Rust |
|---|---|---|---|
| Peak successful requests per second | 97 | 1,294 | 1,774 |
| p95 latency at peak (ms) | 2,634 | 220 | 112 |
| RAM at peak | 481 MB | 380 MB | 179 MB |
| CPU at a steady 50 requests per second | 52.4% | 7.2% | 4.2% |
| Cold local build | not measured | 8.7 s | 19.4 s |
| Incremental local build | not measured | 1.2 s | 1.1 s |
| Cold build on Cloud (median) | 27 s | 1 m 4 s | 3 m 1 s |
| Wake from sleep (median) | 712 ms | 184 ms | 154 ms |
That is roughly 13 times the PHP throughput for Go on this test, with builds that are about twice as fast as Rust's from cold. Treat the numbers as a direction, not a promise. The author is clear that the test apps are intentionally simple, with a 200-row MySQL dataset, run on Pro 4 GiB instances. Under light load, all seven frameworks had similar latency. The main difference there was CPU use, which is where the savings would show up on your hosting bill.
Try it
Install the new Laravel CLI. On macOS and Linux:
curl -fsSL https://laravel.com/install.sh | sh
You need Go 1.27 or later, Node.js, and Git. Then create an app and pick Go when asked, or pass the flag:
laravel new example-app --go
cd example-app
laravel migrate
laravel dev
laravel dev starts the server, a queue worker, and Vite together, and rebuilds when you change a .go file. If you already have Laravel Herd or the older Composer installer, check which laravel binary your shell finds first, because they share the command name.
For production, build your frontend assets, then build the app into a single binary and run it:
npm run build
go build -o app .
./app
You can run that binary on any Linux server. Laravel Cloud also builds and runs Laravel Go apps with autoscaling, managed queues, scale to zero, Postgres or MySQL, Valkey, and WebSockets. Before you deploy, confirm APP_DEBUG is false.
Should you use it?
It is a beta, and a young one. The first tag is v0.1.0, there is no published date for a stable release, and the PHP package ecosystem has no Go equivalent yet. For anything customer-facing, start with a side project or a small internal service and see how it feels.
Two details are worth knowing before you build on it. Authorization on form structs is optional, so nothing forces you to declare who may submit a form. And a has_many relationship you forgot to load does not panic. It comes back empty, so a page that skips With("comments") shows no comments instead of failing. Tests are your safety net for both.
If your team already writes Go, or you want compiled-language speed without Rust's longer builds, Laravel Go is worth a weekend. If your product runs on Laravel PHP, the practical path is one new service at a time, such as a high-traffic API, a webhook ingester, or a real-time service, while the main app stays where it is.
A good first test: build one route, one validated form, and one queued job, then run go test ./.... You will learn quickly whether the conventions feel like home.
References
- Introducing Laravel Go, Taylor Otwell, Laravel Blog
- Laravel Go landing page and FAQ
- Laravel Go documentation: installation
- Laravel Go documentation: development
- Laravel Go documentation: concurrency and tasks
- Laravel Go documentation: validation
- Laravel Go documentation: model relationships
- A letter to the Laravel community, Taylor Otwell, Laravel Blog
- Introducing Laravel Rust, Laravel Blog
- Laravel Rust: 18x the throughput of Laravel PHP, Sam Rose, Laravel Blog (updated December 3, 2026 with Laravel Go)
- Go 1.27 is released, The Go Blog
- Effective Go, go.dev
- Laravel Go is here. What it is, how it differs from Laravel Rust, and where Goravel stands, Majd Ghithan, Laravawy
- Laravel Go is here too: how it compares with Laravel Rust, Rizwan Ali, DEV Community
- Laravel Releases Laravel Rust and Much More, Laravel Magazine
- Laravel Goes Beyond PHP With Laravel Rust and a Polyglot Laravel Cloud, PHP Architect