The pocket gopher, that rodent of the North American prairies, doesn’t overcomplicate things: it digs straight tunnels, with chambers to store food and exits where it needs them, and that’s enough for it to live on. No ornaments, just a simple network of galleries that works.
Yesterday I was talking about the hermit crab in connection with Laravel Rust, and with barely any time to digest it: a day after that announcement, Taylor Otwell has published Laravel Go, also in beta. And it’s rather fitting that Go’s mascot is precisely a gopher, because the idea of this Laravel is exactly that: less magic and more straight galleries.
What it is
Laravel Go is a full-stack framework with routing, middleware, sessions, authentication, models, queues, mail, workflows and testing helpers, the same as we saw yesterday. The difference is the approach: according to the announcement, it doesn’t copy the syntax of Laravel Rust or Laravel PHP, but delivers the same capabilities “while embracing Go’s philosophy of simplicity”.
And you can see it in the foundations. It’s built directly on the standard library’s net/http package and goroutines, with no third-party web framework underneath:
- Your application is an
http.Handler, and*web.Requestembeds the standard*http.Request, so the Go handlers and middleware you already have plug right in. - Application state and transactions flow explicitly through
context.Context. - Shared dependencies are wired once at startup, in
services/services.go, rather than hidden behind a dynamic container.
That last point strikes me as one of the most significant: the service container is one of the pillars of Laravel PHP, and here they’ve decided to do without it because it doesn’t fit in Go.
Why Go as well as Rust?
Otwell explains it: when he decided to bring Laravel to another language, Rust and Go were the two that came to mind, because both are extremely fast, compiled and typed. According to him, in practice they perform very similarly, Rust wins barely on top-end speed, and in exchange Go offers much faster compile times, less disk space and simple syntax, “great for agents and humans”. And he adds another reason: Go is one of the most widely deployed backend languages in the world, but it didn’t have a definitive full-stack framework that also integrated with a modern frontend through Inertia and React or Vue.
The same form, in Go
The most interesting part is comparing it with yesterday. The form to create a post, which in Rust was handled with attributes and macros, looks like this in Go:
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),
)
}
func Store(r *web.Request) *web.Response {
form, err := r.Validate[StorePost]()
if err != nil {
return web.Fail(err)
}
post := models.Post{Title: form.Title, Body: form.Body}
if err := model.Create(r, &post); err != nil {
return web.Fail(err)
}
return web.RedirectRoute("posts.show", "post", post.ID)
}
It’s longer, yes, but nothing is hidden: a struct, a Rules() method and a handler with Go’s classic if err != nil. The trick is that the rules reference each field through its pointer (&f.Title), so a misspelt field name won’t compile. And if validation fails, web.Fail(err) redirects back to the form with the errors or returns a 422 if the request is JSON.
Putting the two versions side by side:
| Laravel Rust | Laravel Go | |
|---|---|---|
| Validation | #[validate(...)] attributes on the struct | A Rules() method with pointers to the fields |
| Misspelt columns and relationships | Compile error | Panic in tests, listing the valid names |
| Relationships | Never loaded on their own, requested with with | Same, with With |
| Dependencies | Macros and extractors | Explicit, in context.Context and services.go |
| Compilation | Slower | Very fast |
The second row is the difference that caught my eye most: in Rust the compiler checks column names, whereas in Go that check happens when the query is built and fires in your tests. It’s a slightly weaker guarantee, although if you have tests (and you should), in practice the error shows up before reaching production.
Concurrency, Go style
Where Go plays at home is concurrency. If a handler needs several independent pieces of data, task.Run launches them in parallel:
err := task.Run(r,
func(ctx context.Context) (err error) {
users, err = db.Table("users").Count(ctx)
return err
},
func(ctx context.Context) (err error) {
orders, err = db.Table("orders").Count(ctx)
return err
},
)
If one fails, Laravel cancels the others’ contexts so they stop as soon as possible, and if one panics, it recovers it and returns it as an error instead of bringing the process down. It’s exactly the kind of code you usually write by hand in Go with errgroup, and that’s easy to get wrong.
The rest of the announcement goes over what we saw yesterday, adapted to Go: queues with a Handle method, durable workflows written as a single function with run.Sleep(3 * 24 * time.Hour) in the middle, broadcasting with a Reverb written in Go, Inertia, migrations compiled into the binary, automatic OpenTelemetry traces and tests with go test against an in-memory application.
The agents part, again
The philosophy is the same as Laravel Rust’s: it’s designed for a world where “humans will increasingly neither write nor manually read application code at scale”, and every project ships with skills so agents know how to write and test idiomatic Laravel Go.
Here I have to say that Go seems a better candidate than Rust for that world, although this is my own opinion. If an agent writes the code but someone has to supervise it (and I still think AI is a very fast intern who needs reviewing), flat Go code with no macros reads much faster than code full of attributes and extractors. And compile times of seconds make the “the agent changes something, compiles, tests” loop much smoother.
What I’d look at
Yesterday’s caveats still apply (it’s a beta, the package ecosystem doesn’t get ported in weeks, and it’s installed with curl ... | sh), and I’d add a couple more, also my own:
- Go’s culture. A good part of the Go community prefers the standard library and is wary of big frameworks. Being built on
net/httphelps a lot, but it remains to be seen whether a batteries-included framework wins over that ecosystem. - Three Laravels at once. PHP, Rust and Go, with feature parity between them, is a lot to maintain. If agents write the code, maybe it’s more manageable than it seems, but it’s the question I’d ask before betting a serious project on it.
- Go version. It requires Go 1.27 or later, worth checking before you start.
If you want to try it, it’s the same CLI as yesterday with a different option:
curl -fsSL https://laravel.com/install.sh | sh
laravel new example-app --go
In the end, yesterday’s crab and today’s gopher are the same Laravel looking for a home in different places: one moves into a hard, well-armoured shell, and the other digs simple, straight galleries. For anyone who already works with Go and missed a batteries-included framework, this burrow looks very promising.




