Laravel has released the first beta of Laravel Go. It is a full-stack web framework for the Go language, with routing, sessions, authentication, database models, queues, mail, workflows, and testing tools built in.
A web framework is a ready-made toolkit for building websites and APIs. Laravel Go is written in normal Go style, instead of copying the look of Laravel PHP.
What is Laravel Go?
Laravel Go is Laravel's idea of a "batteries-included" framework, rebuilt for Go. Laravel says it delivers equivalent features while following Go's love of simplicity. Every new app also ships with built-in agent skills that guide AI coding agents on how to write and test Laravel Go code.
Laravel describes the thinking behind it: as AI writes more code, strong guardrails, clear structure, and ready-made conventions matter even more. Laravel Go follows the same path as Laravel Rust, the framework Laravel released the day before.
Why Go, and why alongside Rust?
Laravel says Rust and Go were the two languages it considered. Both are fast, type-safe, compiled languages. A compiled language is turned into a program the computer runs directly. Laravel says Laravel Go gives a big jump in speed over Laravel PHP.
Compared with Laravel Rust, Laravel says Go gives up a little:
- Less "magic" syntax and no macros.
- Slightly lower top speed, "barely", but similar real-world speed and throughput.
In return, it says you get:
- Very fast compile times.
- Much less disk space use.
- Simple Go code that is easy for people and agents to read.
Laravel also says Go is one of the most widely used backend languages, yet it has lacked a definitive, full-stack framework that pairs well with modern frontends. Laravel Go aims to fill that gap.
Built on standard Go
Laravel Go uses Go's standard net/http package and goroutines. A goroutine is a very light task that Go can run by the thousands.
Every request runs in its own goroutine. If one handler waits on a slow database call, an outside request, or an AI API call, Go parks it and keeps serving other work on the same threads.
Because it follows standard conventions, your app is an http.Handler, and existing Go handlers and middleware plug in. State and database transactions pass explicitly through context.Context. Shared services are set up once at startup instead of being hidden in a dynamic container.
Main features
Routing and handlers
You register routes in files such as routes/web.go and routes/api.go. Routes support groups, middleware, named URLs, and route model binding, which loads the matching record or returns a 404. Here is a small example:
route.Get("/greeting", func(r *web.Request) *web.Response {
return web.Text("Hello World")
})
route.Get("/posts/{post}", posts.Show).Name("posts.show")Typed validation
You describe a form or JSON payload as an ordinary Go struct with a Rules method. Calling r.Validate fills the struct and checks every rule. If it fails, browsers go back to the form with errors, and API clients get a 422 JSON reply. Fields are referenced by pointer, so a misspelled field name fails to compile.
Models and eager loading
Models are plain Go structs that map to database columns, with relationships declared in struct tags. Queries use generic builders that return typed lists. Laravel says reading a relationship never runs a hidden query. You load what a page needs with With, which prevents accidental N+1 queries. An N+1 query is a slow pattern where one query triggers many extra ones.
Migrations and the schema builder
Database migrations are Go functions that compile into your app binary, so a deployed server can run migrate without your source code. The schema builder writes the right SQL for PostgreSQL, MySQL, MariaDB, or SQLite. On PostgreSQL and SQLite, migrations run inside a transaction.
Concurrency, background work, and ticks
The task package runs independent jobs at the same time, such as counts for a dashboard. It passes along your context, the logged-in user, and the tracing span. If one task fails, the rest are cancelled, and a panic inside a task becomes an error instead of crashing the whole program.
You also get task.Go for one goroutine, r.Background for light work after a response, and repeating in-process ticks, which can also run one last time on shutdown.
Queued jobs
For work that should run outside the request, you write a struct with a Handle method. Tag a model field with queue:"model", and Laravel stores only its ID and reloads a fresh record before the job runs. Queues share one API across database, Redis, Amazon SQS, and Laravel Cloud managed queues. They support retries, job middleware, chains, and batches.
Durable workflows
Some flows last days or weeks, like sending a welcome email, waiting three days, then sending tips if the user has not made a project. A workflow lets you write that whole flow as one Go method.
Workflows run on your existing queue workers, with no separate orchestration service. Each step runs once and its result is saved. A workflow that waits two weeks uses no worker resources and resumes after deployments and restarts.
Email uses typed "mailable" structs. Laravel renders the HTML view and makes a matching plain-text version. It includes Resend and Amazon SES transports, mailer failover, attachments, and a local log mailer for development.
Broadcasting and WebSockets
Any event can be sent to browsers in real time over WebSockets, so pages do not need to keep asking the server for updates. A Reverb WebSocket server written in Go comes with the framework. Run laravel reverb:start locally, then switch to managed Reverb on Laravel Cloud for production. On the frontend, Laravel Echo's React hook useEcho listens for events.
Inertia and server-side views
Inertia lets you build React, Vue, and Svelte frontends without a separate JSON API. Laravel Go supports deferred props, live props, prefetching, polling, flash data, history encryption, and server-side rendering. If you prefer server-rendered HTML, it also has built-in views and templates compiled into the binary, with Vite asset support.
Everything else built in
- OpenTelemetry tracing: requests, queries, cache lookups, outgoing calls, queued jobs, and console commands record timed spans. Point your
.envfile at an OpenTelemetry endpoint, and traces can flow to tools like Sentry, Grafana, or Jaeger. - Explicit services: shared clients are created once at startup and read from the context, which makes them easy to swap in tests.
- Social login and feature flags: OAuth login for Google, GitHub, and Microsoft, plus persistent feature flags for gradual rollouts.
- Isolated testing: use normal
go testfunctions withtests.New(t)to run your app in memory, with a controllable clock, without starting a server.
How to get started
Install the new Laravel CLI by following the Laravel documentation, then create an app with the Go option:
laravel new example-app --goIf you already have an older laravel CLI or Laravel Herd, check the installation guide for PATH steps. When you are ready to ship, deploy the compiled binary yourself or push to Laravel Cloud, which offers managed Postgres and MySQL databases, Valkey caches, scale-to-zero compute, managed queues, WebSockets, and object storage.
What It Means for Developers
If you write Go, or know Laravel, this launch gives you a new option for full web apps.
What It Means for Backend Developers
- Go developers get one framework with queues, workflows, mail, authentication, and migrations, so they need fewer separate libraries.
- It sits on
net/http, so existing Go handlers and middleware can plug in. - Typed validation and checked query names move some mistakes from runtime to compile time or tests.
- Workflows replace chains of delayed jobs and status columns for long processes.
- It is a beta, so test it on a side project before betting production on it.
What It Means for Full-Stack Developers
- Inertia support lets you pair Go with React, Vue, or Svelte without writing a separate JSON API.
- Broadcasting with
useEchoand live props helps you build real-time pages. - Laravel PHP developers can pick up familiar ideas, such as routes, models, queues, and mail, in a compiled language. For another full-stack framework in a compiled language, see our story on Tokio's Topcoat for Rust.
What It Means for DevOps Engineers
- Your app ships as a compiled binary with views and migrations inside, which can simplify deployment.
- OpenTelemetry tracing is built in, so you can send traces to your usual tools through an environment setting.
- Workflows run on the same queue workers, so there is no extra orchestration service to run.
Bottom line
Laravel Go brings Laravel's batteries-included style to Go, with plain standard-library foundations and a full set of tools for modern web apps. It is early, but it fills a gap Laravel says Go has had for years.
If you like Go, try the beta on a small project and read the official documentation for the latest details.

