
Today we are releasing the first beta of Laravel Go, a full-stack web framework for Go with routing, middleware, sessions, authentication, database models, queues, mail, workflows, and testing helpers built in.
Laravel Go is Laravel reimagined in idiomatic Go. Rather than copying the syntax of Laravel Rust or Laravel PHP, Laravel Go focuses on delivering equivalent capabilities while embracing Go's philosophy of simplicity. Every new application also ships with built-in agent skills that guide coding agents on how to write and test idiomatic Laravel Go code.
Like Laravel Rust, Laravel Go is built with the forward-looking perspective that humans will increasingly neither write nor manually read application code at scale. In that world, strong guardrails, clear structure, and batteries-included conventions matter more than ever.
Laravel Go brings the battle-tested conventions, philosophy, and productivity of Laravel to Go as a modern, high-performance compilation target that will thrive in the AI age. With Laravel Go, we want to equip teams to hit the ground running on the most ambitious, mission-critical web applications of the future.
Like yesterday's release, there is far too much to cover in a single blog post, so the sections below walk through only some of the highlights. To explore everything Laravel Go includes, from authentication, encryption, and file storage to task scheduling, console commands, and package development, dig into the full Laravel Go documentation.
#Why Laravel Go alongside Laravel Rust?
When I decided that I would bring Laravel to another language, Rust and Go were the two that came to mind. Both are extremely fast, type-safe, compiled languages. In the AI age, why not write in very fast, type-safe, compiled languages? Like Laravel Rust, Laravel Go delivers an order-of-magnitude jump in performance over Laravel PHP.
Laravel Go is 100% idiomatic Go. It doesn't try to force Go to be something it isn't. Compared to Laravel Rust, it trades a bit of the "magic" syntax, macros, and raw top-end speed (barely!) for very similar real-world speed and throughput, while giving you super fast compile times, much less disk space usage, and straightforward, simple Go syntax that's great for agents and humans. For teams developing locally who want fast feedback loops without giving up compiled-language performance, it strikes a really nice balance.
Laravel Go is built directly on Go's standard net/http package and goroutines, with no third-party web framework underneath. Every request runs in its own lightweight goroutine: when a handler waits on a slow database query, an outgoing HTTP call, or a long-running AI API request, Go's runtime parks that goroutine and keeps serving thousands of other requests, background tasks, and queue jobs on the same threads without stalling.
Because Laravel builds on standard-library conventions, your application is an http.Handler, web.Request embeds the standard http.Request, and existing Go handlers and middleware plug right in. Application state and database transactions flow explicitly through context.Context, and shared dependencies are wired once at startup in services/services.go rather than hidden behind a dynamic container.
Rust and Go were the two ecosystems where I felt I could contribute something unique that didn't quite exist yet. Unlike TypeScript, where well-established frameworks and communities have already been built, Go is one of the most widely deployed backend languages in the world, yet it hasn't had a definitive batteries-included, full-stack framework that also pairs cleanly with a modern frontend via Inertia and React / Vue. I hope the community finds this worthy to fill that gap.
#Routing and handlers
When someone visits a page or submits a form, Laravel matches the request against the routes you register in routes/web.go and routes/api.go. You can start with inline function literals and organize larger endpoints into handler packages under handlers/:
Routes support route groups, middleware, named route URL generation (web.RedirectRoute("posts.show", "post", post.ID)), and route model binding (model.FromRoute[models.Post](r, "post")), which loads the matching record automatically or responds with a 404. To learn more, check out the routing guide.
#Typed validation and form structs
In Laravel Go, you describe incoming form and JSON payloads as ordinary Go structs with json tags and a Rules method:
r.Validate[StorePost]() binds the request into your struct, enforces each field's Go type automatically, and checks every validation rule.
If validation fails, web.Fail(err) redirects browsers back to the form with the errors or returns a 422 JSON response to API clients. Because each field is referenced by its struct pointer (&f.Title), misspelled field names fail to compile rather than slipping through to runtime.
For partial PATCH or Inertia updates, validation.Sometimes[T] cleanly distinguishes fields a client omitted from fields explicitly sent as null. To learn more, check out the validation guide.
#Models, relationships, and eager loading
Models are ordinary Go structs where each field maps to a database column and relationships are declared with a model struct tag:
Querying models uses generic builders that return typed slices ([]models.Post) and support filtering, ordering, and eager loading in a single fluent chain:
Every column and relationship name is checked against the model's fields when you build the query, panicking during tests with the list of valid names if you mistype one. Reading a relationship field never runs a hidden query behind the scenes: you load what a page needs up front with With, preventing accidental N+1 queries by design. To learn more, check out the models and model relationships guides.
#Schema builder, migrations, and raw queries
Database migrations are Go functions in database/migrations/ that compile directly into your application binary alongside your embedded views and seeders, so a deployed server can run migrate without shipping your source tree. Inside each migration, the fluent schema builder generates the right SQL for PostgreSQL, MySQL, MariaDB, or SQLite automatically:
Migrations run inside a transaction on PostgreSQL and SQLite, and every schema call or query passed ctx joins that transaction automatically. To learn more, check out the migrations guide.
#Concurrency, background work, and ticks
When a handler needs several independent pieces of data, such as counts for a dashboard or calls to multiple APIs, the task package runs them concurrently while propagating your application context, authenticated user, and tracing span automatically:
If any function passed to task.Run fails, Laravel cancels the remaining functions' contexts immediately so in-flight queries or HTTP requests stop early, and any panic inside a task is recovered and returned as an error instead of crashing the whole Go process. You also get task.Go for launching a single goroutine and collecting its result later, r.Background for lightweight work after a response returns (waiting for commits inside transactions and finishing during graceful shutdown), and repeating in-process ticks registered in bootstrap/app.go to flush buffered state on an interval and one final time on shutdown:
To learn more, check out the concurrency and tasks guide.
#Queued jobs
For work that should run reliably outside the request lifecycle, define a Go struct with a Handle(ctx context.Context) error method. Tag any model field queue:"model" so Laravel stores only the model's ID on the queue and reloads a fresh record before Handle runs:
Dispatch the job from any handler, command, or listener:
Queues share one unified API across database, Redis, Amazon SQS, and Laravel Cloud managed queues, complete with retries, job middleware, chains, and batches. To learn more, check out the queues guide.
#Durable, fault-tolerant workflows
Some application flows span days or weeks rather than milliseconds. Onboarding a new user might involve sending a welcome email, waiting three days, and sending getting-started tips if they have not created a project yet. Building that with queued jobs alone requires chaining delayed jobs, tracking progress in status columns, and writing sweep commands for stalled runs.
Workflows let you write the entire multi-day flow as a single Go method:
Workflows run on your existing queue workers with no separate orchestration service to deploy. Laravel executes each step once, saves its result, and suspends the run while sleeping or waiting on an external webhook or approval link. A workflow waiting for two weeks consumes no worker resources in the meantime, and resumes cleanly across deployments and worker restarts. To learn more, check out the workflows guide.
Transactional email uses typed mailable structs whose Build method returns a mail.Message. Laravel renders the email's HTML view and generates a matching plain-text version automatically:
Queue or send a mailable in one call, or preview it in your browser during development with mail.Render:
Laravel ships with first-party Resend and Amazon SES transports, mailer failover, attachments, and a local log mailer for development. To learn more, check out the mail guide.
#Event broadcasting and WebSockets
When an order updates, a deployment finishes, or a teammate joins a page, your application can push those updates to browsers in real time instead of polling your server. Any event can broadcast over WebSockets by adding a BroadcastOn method:
Dispatch the event with event.Dispatch(r, events.OrderUpdated{...}), and Laravel broadcasts its JSON fields to private-orders.{order_id} while leaving json:"-" and unexported fields off the wire. Authorize private and presence channels in routes/channels.go using the same request helpers and route model binding as your HTTP handlers:
On the frontend, subscribe to the private channel and handle incoming events with Laravel Echo's useEcho React hook:
A Reverb WebSocket server written in Go is included directly with the framework. Run laravel reverb:start to develop realtime features locally with Laravel Echo over the Pusher protocol, then switch your environment variables to managed Reverb on Laravel Cloud when you deploy to production. To learn more, check out the broadcasting and WebSockets guides.
#Inertia.js and server-side views
Laravel Go includes full Inertia support for building modern React, Vue, and Svelte frontends without maintaining a separate JSON API. That includes deferred props, live props, prefetching, polling, flash data, history encryption, and server-side rendering.
Live props pair Inertia directly with event broadcasting so a page refreshes automatically whenever a matching broadcast event fires, while deferred props keep expensive secondary data from delaying the initial render. Because a deferred prop takes any function matching func(context.Context) (T, error), you can pass a query's Get method directly:
Of course, if your application prefers server-rendered HTML, Laravel Go also includes built-in views and templates compiled directly into your binary with layouts, components, and Vite asset integration.
#Everything else built in
Alongside the core features above, Laravel Go ships with the production tools modern web applications reach for right away:
- Automatic OpenTelemetry tracing: Incoming requests, database queries, cache lookups, outgoing HTTP calls, queued jobs, and console commands record timed OpenTelemetry spans automatically. Point your .env file at an OTLP endpoint, and traces flow to Sentry, Grafana, or Jaeger without manual instrumentation.
- Explicit services and context: Construct shared clients once at startup in services/services.go and read them from any request or context.Context with services.From(ctx), keeping dependencies clear and straightforward to swap in tests.
- Social login, feature flags, and head metadata: OAuth login for Google, GitHub, and Microsoft, persistent feature flags for gradual rollouts, and server-rendered <head> tags for both views and Inertia pages are built directly into the framework.
- Isolated full-stack testing: Write standard go test functions using tests.New(t) to boot an isolated in-memory application, cache, and controllable clock, exercising your full HTTP stack, fakes, and time-dependent logic without starting a server:
#Getting started
Install the brand-new Laravel CLI and create your first Laravel Go application:
If you already have an older laravel CLI or Laravel Herd installed, check the installation guide for PATH setup instructions.
When you are ready to ship, you may deploy your compiled binary on your own servers or push straight to Laravel Cloud for managed Postgres and MySQL databases, Valkey caches, scale-to-zero compute, managed queues, WebSockets, object storage, and more.
To dive deeper, head over to the Laravel Go documentation.