Laravel Go: what it is, how to install it and how it compares to Laravel Rust

Marcos Marcolin • December 3, 2026 • 5 min read

PHP AI Open Source

Yesterday, December 2nd, 2026, one day after Laravel Rust, Taylor Otwell announced the first beta of Laravel Go. Same idea: it is not a port of Laravel PHP, but a new framework with Laravel's conventions, written in Go.

According to Taylor, when he decided to bring Laravel to another language, Rust and Go were the two that came to mind: "Both are extremely fast, type-safe, compiled languages." So he built both, in parallel.

Quick summary

What Laravel Go is

Laravel Go uses net/http and goroutines. Each request runs in its own goroutine, and the application is a regular http.Handler. A slow query or a long HTTP call only parks that goroutine while everything else keeps being served.

The beta already ships a lot: routing, middleware, sessions, authentication (including social login), authorization, typed validation, models with a generic query builder, migrations in Go, queues, durable workflows, mail, broadcasting with a Reverb-compatible server written in Go, Inertia with React, Vue and Svelte, task scheduling, OpenTelemetry and testing helpers. The list is practically the same as Laravel Rust's.

Taylor's reasoning for Go is a good one: Go is one of the most widely deployed backend languages in the world, and it never had a definitive batteries-included full-stack framework. People who work with Go usually assemble their stack piece by piece.

How to install it

The CLI is the same one used by Laravel Rust. If you already installed it, skip this part:

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

On Windows, with PowerShell:

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

The same warning from the previous post applies: Herd and the old Composer installer also provide a laravel command. Check that laravel --version starts with Laravel CLI.

Then, with Go 1.27 or later installed:

laravel new example-app --go
cd example-app
laravel migrate
laravel dev

The default is PostgreSQL. To use SQLite, MySQL or MariaDB, you swap the driver in bootstrap/app.go (for example, postgres.Driver for sqlite.Driver), adjust the import, run go mod tidy and change DATABASE_URL in .env.

For production, it is a binary:

npm run build
go build -o app .
./app

What the code looks like

Routes live in routes/web.go and look a lot like Laravel PHP:

func Web(route *routing.Router, cfg *config.Config) {
    route.Get("/users", users.Index)
    route.Get("/users/{user}", users.Show).Where("user", routing.Number)
    route.Post("/users", users.Store)
}

Validation is a plain struct with a Rules method. No macros:

type StorePost struct {
    Title string `json:"title"`
    Body  string `json:"body"`
}

func (f *StorePost) Rules() validation.Rules {
    return validation.For(f,
        rule.Field(&f.Title, rule.Required, rule.Max(255), model.Unique[models.Post]()),
        rule.Field(&f.Body, rule.Required),
    )
}

And in the handler:

form, err := r.Validate[StorePost]()
if err != nil {
    return web.Fail(err)
}

Queries use generics:

posts, err := model.Query[models.Post]().
    WhereGt("votes", 100).
    WhereNotNull("published_at").
    Latest("published_at").
    Get(r)

This is where the main difference from Rust shows up. In Laravel Rust, a wrong column does not even compile. In Laravel Go, the column name is a string, and the mistake only shows up when the query is built, at runtime (with a message listing the valid columns). It is simpler to read and write, but with fewer guarantees from the compiler.

What about performance?

The announcement says that, like Laravel Rust, Laravel Go delivers an order-of-magnitude jump over Laravel PHP. But unlike Rust, which came with a benchmark post and a public repository, there are no published numbers for Go, at least for now.

I do not doubt the result. Compiled Go with goroutines will serve far more requests per instance than PHP, and that is no surprise. But the same caveat from the Rust post applies: the difference is in capacity per instance and memory usage, not in each request being ten times faster. For most applications, the bottleneck is still the database.

Laravel Go or Laravel Rust?

Taylor sums up the trade-off himself: compared to Rust, Go gives up a bit of the "magic" syntax, macros and raw top-end speed ("barely!") in exchange for super fast compile times, much less disk usage and simple syntax, which he says is great for agents and humans.

To me, that is the point. In the Rust post I said that AI lowered the cost of writing code, but not the cost of reviewing, operating and debugging it. That is exactly where Go has the edge:

Rust still has the stricter compiler, and that is a valuable guardrail when an agent is the one writing. But if I were to try one of them with a team coming from PHP, I would start with Go.

And AI?

Just like with Rust, every new application ships with skills for coding agents, guiding them on how to write and test idiomatic Laravel Go code. The announcement repeats the premise that, more and more, people will neither write nor read application code by hand, and that clear conventions and guardrails matter more than ever because of it.

What stands out is the pace: two complete frameworks, in two languages, released on two consecutive days. That did not happen before agents. The judgment about how each one should work still comes from a person. What AI changed is the speed of execution.

Conclusion

Laravel Go is the more pragmatic version of the same bet. Fewer compile-time guarantees than Rust, but easier to read, faster to compile and in a language many teams already run in production.

For people on PHP, nothing changes tomorrow. But Laravel is now a framework philosophy available in three languages, and switching stacks got much cheaper than it used to be. I would still wait for 1.0 and a published benchmark before putting either one into anything critical.

References

Share: