Sulat.com / Writing on AIThursday, December 3, 2026
Enter →
Developer Tools/3 December 2026

A hands-on guide to Laravel Go

Laravel Go is in beta. I built an app from its skeleton, had five models and a control build a notes app, and benchmarked it against Laravel Rust and Laravel PHP.

Laravel logo rendered in 3D over a cyan glowing circuit board, illustrating the Laravel Go framework
Illustration: Sulat, featuring the Laravel logo

At a glance

  • Laravel Go is in beta, built on net/http and goroutines, with typed validation, models, queues, durable workflows, mail, Inertia and a Go Reverb server. Taylor Otwell says it has full feature parity with Laravel Rust.
  • In my benchmark on PostgreSQL, one four-core machine, Laravel Go served 28x to 69x the requests of Laravel PHP, and kept 79 to 92 percent of Laravel Rust's throughput on the JSON and single-user routes.
  • Go built far cheaper than Rust: a cold build took 36 seconds against 4 minutes 37, with a 52 MB binary against 74 MB and about 59 MB of memory in use under load against 73 MB.
  • Kimi, DeepSeek, Claude Opus, GPT-6.2 Sol and Gemini Neon each built a notes API, an Inertia React page and a queued job from three prompts, and a control with the agent skills removed did too.
  • A durable workflow I wrote finished across a stopped worker and a second one, with the welcome step running once.
  • The framework's own test suite passed in 67 packages in my environment, with six tracing test failures in the root package and a timeout in the Reverb package that I haven't investigated.

Laravel Go, the first beta of Laravel for Go, is out, a day after Laravel Rust. I built an app from its skeleton, had five models and a no-skills control build a notes app in it, ran a durable workflow through a worker restart, and benchmarked it against Laravel Rust and Laravel PHP on the same machine.

I covered the Rust launch in my guide to Laravel Rust. This is the same treatment for Go: what’s in the beta, what I built, what the numbers say next to Rust and PHP, and what it costs you.

What launched

Laravel on X, announcing Laravel Go.

Laravel Go is a full-stack framework for Go with routing, middleware, sessions, authentication, database models, queues, mail, workflows and testing helpers built in. It’s MIT licensed and works with PostgreSQL, MySQL, MariaDB and SQLite. The skeleton asks for Go 1.27. Every new app ships with agent skills and an AGENTS.md that tell a coding agent how to write and test idiomatic Laravel Go.

It’s built directly on Go’s standard net/http package and goroutines, with no third-party web framework underneath. Every request runs in its own goroutine, *web.Request embeds the standard *http.Request, and shared dependencies are wired once at startup in services/services.go instead of sitting behind a dynamic container.

Taylor Otwell on X, introducing Laravel for Go.

7

agent skills in a new app

4

databases supported

36 s

for a cold build of the app

Why Go next to Rust

Taylor Otwell says he built both in parallel from a single mono-repo workspace, and that Rust and Go were the two languages that came to mind. His pitch for Go is that it gives up a little against Rust and keeps most of the result.

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.

Taylor Otwell, Introducing Laravel for Go
Otwell on X: the two frameworks have full feature parity and each stays true to its language.

He also says Laravel Go doesn’t copy Laravel Rust’s syntax or Laravel PHP’s, and that it’s “100% idiomatic Go”. The practical difference shows up in the code below. Rust declares validation with macros on a struct. Go uses an ordinary struct with a Rules method, and misspelled field names fail to compile because rules reference the field pointer, not a string.

What I set up

I started from the official skeleton repository, copied the environment file, generated an application key, installed the frontend dependencies, pointed it at PostgreSQL 16 and ran the migrations with the Laravel CLI, which was version 0.4.0. I couldn’t use laravel new --go in my cloud container because its proxy blocked the skeleton download, so I copied the skeleton from the repository. These are the commands.

Code
cp .env.example .env
laravel key:generate
npm ci
laravel migrate --force
laravel route:list
go test ./...
Terminal showing laravel route:list for a new Laravel Go app with health check, welcome, api version and fallback routes
The routes a fresh Laravel Go app registers, listed by the Laravel CLI.

The skeleton carries seven skills under .agents/skills: auth-and-authorization, database-and-models, inertia-frontend, queues-and-workflows, testing-laravel-go-apps, validation-and-input and writing-laravel-go-apps. The framework module, go.laravel.com, also bundles version-matched Markdown docs, so an agent reads the docs for the exact version the app uses straight from the module cache.

Five models and a control

The skills are the part of Laravel Go I most wanted to test. I ran opencode 1.19.6 on Kimi K3.1 Pro, DeepSeek V4.1 Flash, Claude Opus 5.5, GPT-6.2 Sol and Gemini 4 Neon. Each started from a fresh copy of the skeleton on its own PostgreSQL database and got three prompts in one session, one after the other. These are the prompts, word for word.

Code
Add a notes resource to this app: a Note model with a title and a body, a migration, a JSON API at /api/notes with index and store, validation (title required, 3 to 100 characters), and feature tests. Follow the conventions in AGENTS.md. Run go test ./... and make sure everything passes.

Add an Inertia React page at /notes that lists the notes and has a form to add a new one. Follow the project's existing conventions. Make sure npm run build and go test ./... both pass.

When a note is created, queue a job that counts the words in its body and saves the result in a word_count column on the note. Add the migration and a test for the job. Follow the project conventions and make sure go test ./... passes.

I also ran a control: DeepSeek V4.1 Flash on a copy of the skeleton with AGENTS.md, CLAUDE.md and the whole .agents folder deleted, so it had only the code and the docs bundled in the module.

All six finished all three prompts. In every final app go vet, go test, npm run build and the TypeScript check pass. After I ran the migrations, the API returns 201 for a valid note and 422 for a title of two characters, the /notes page lists a note added through its form, and a queue worker processes the word-count job and saves 7 for my test note. The five models with the skeleton’s files all loaded at least one of the bundled skills before they wrote code. The control loaded none and read the framework docs instead.

ModelTest functions in the appgo testnpm run build422 on a short titleForm adds a noteJob saves word count
Kimi K3.1 Pro10PassPassYesYesYes
DeepSeek V4.1 Flash10PassPassYesYesYes
Claude Opus 5.515PassPassYesYesYes
GPT-6.2 Sol11PassPassYesYesYes
Gemini 4 Neon10PassPassYesYesYes
DeepSeek V4.1 Flash, no skills7PassPassYesYesYes
A six-run smoke test: one run each, checked after the runs. The skeleton itself has two test functions.

The control is the useful result. The skills didn’t decide whether the task could be done, because a model with only the code and the bundled docs finished it too. What differed was the work around it. The control wrote the fewest tests, seven against 10 to 15, and had no AGENTS.md to follow. Opus wrote the most tests, and it was the only one to leave word_count nullable where the other five made it a non-null column that defaults to 0.

GPT-6.2 Sol’s form struct and action for the notes API show the shape the models settled on: the validation lives on the type, and the handler only runs once the input is valid.

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

func (f *StoreNote) Rules() validation.Rules {
	return validation.For(f,
		rule.Field(&f.Title, rule.Required, rule.Between(3, 100)),
	)
}

func CreateNote(ctx context.Context, form StoreNote) (models.Note, error) {
	note := models.Note{Title: form.Title, Body: form.Body}
	if err := model.Create(ctx, &note); err != nil {
		return models.Note{}, fmt.Errorf("create note: %w", err)
	}
	if _, err := queue.Dispatch(ctx, jobs.CountNoteWords{NoteID: note.ID}); err != nil {
		return models.Note{}, fmt.Errorf("queue word count for note %d: %w", note.ID, err)
	}
	return note, nil
}
Terminal listing fifteen passing Go feature tests for notes, the API and the welcome page, ending with ok
Claude Opus 5.5’s 15 tests passing in its app.

Each model chose its own layout because I didn’t prompt for design, so these screenshots aren’t a quality ranking. Each one shows the page after I added a note through its form.

Notes page with a form and one saved note, built in a Laravel Go app by Kimi K3.1 Pro
Kimi K3.1 Pro’s notes page.
Notes page with a form and one saved note, built in a Laravel Go app by DeepSeek V4.1 Flash
DeepSeek V4.1 Flash’s notes page.
Minimal notes page with a form and one saved note, built in a Laravel Go app by Claude Opus 5.5
Claude Opus 5.5’s notes page.
Notes page with an add-a-note form and a saved notes list, built in a Laravel Go app by GPT-6.2 Sol
GPT-6.2 Sol’s notes page.
Notes page with an add-a-note form and a saved notes list, built in a Laravel Go app by Gemini 4 Neon
Gemini 4 Neon’s notes page.
Notes page with a form and one saved note, built in a Laravel Go app by DeepSeek V4.1 Flash with the agent skills removed
The control: DeepSeek V4.1 Flash with the skills removed.

The benchmarks

Laravel hasn’t published a benchmark for Go. The launch post says Laravel Go delivers an order-of-magnitude jump over Laravel PHP, and Otwell says it gives up a little top-end speed to Rust. I ran all three on the same machine to see how big each gap is.

The machine and the method

Everything ran on one cloud VM: four vCPUs (Intel Xeon at 2.3 GHz, under KVM), 16 GB of memory and a 252 GB disk, running Ubuntu 24.04. The database, the apps and the load generator all shared it. Both compiled apps were release builds of their skeletons, Laravel Go 0.1.0 and Laravel Rust 0.1.4. The PHP app was Laravel 13.45.0 on PHP 8.3.6 in production mode with config, route and view caches, OPcache with the JIT on, nginx in front and PHP-FPM running eight static workers. All three used PostgreSQL 16.15.

Each app served four routes: /api/version, which returns a line of JSON, /api/count, which runs a count query on the users table, /api/users, which returns 20 users, and /api/users/42, which returns one user through route model binding. The users table held the same rows for all three. I warmed each app up, then ran autocannon 9.0.0 flat out for 15 seconds at 16, 64 and 128 connections, three times each, and the table shows the median. No run had a failed request.

Route and connectionsLaravel Go (req/s)Laravel Rust (req/s)Laravel PHP (req/s)Go vs PHPGo vs Rust
JSON, 1644,58650,5891,61028x88%
JSON, 6449,80262,8801,63730x79%
JSON, 12852,22465,5391,64732x80%
Count, 1615,67220,94837542x75%
Count, 6418,17521,83234752x83%
Count, 12824,38622,40835169x109%
20 users, 168,94615,02030829x60%
20 users, 6410,92216,87429337x65%
20 users, 12811,59720,02729839x58%
One user, 1613,78017,48633242x79%
One user, 6416,79318,51332452x91%
One user, 12819,99121,62430166x92%
My smoke test on PostgreSQL: one machine, median of three runs per row, no failed requests in any run.
Bars for the JSON route at 64 connections: Go 49,802 requests a second, Rust 62,880, PHP 1,637
On the plain JSON route PHP’s bar is a sliver next to the two compiled frameworks.
Bars for a count query and a 20-user list at 64 connections: Go 18,175 and 10,922, Rust 21,832 and 16,874, PHP 347 and 293
The database routes at 64 connections.

Go ran 28x to 69x faster than Laravel PHP, and Rust ran 31x to 72x faster. On the JSON and single-user routes Go kept 79 to 92 percent of Rust’s throughput. The 20-user list route is where Rust pulls furthest ahead, with Go at 58 to 65 percent. On the count route at 128 connections Go came out ahead, 24,386 requests a second against 22,408, though the three Rust runs ranged from 19,930 to 23,262 and Go’s lowest was 22,309, so I wouldn’t read that as a win.

Bars of Go throughput as a share of Rust at 64 connections: JSON 79%, count 83%, 20 users 65%, one user 91%
Go’s throughput as a share of Rust’s at 64 connections.

Tail latency at 64 connections follows the same pattern. The median p99 on the count route was 5 ms for Rust, 12 ms for Go and 248 ms for PHP. On the JSON route it was 2 ms, 7 ms and 51 ms.

These numbers use PostgreSQL, so don’t compare them with the SQLite and MySQL figures in my Laravel Rust guide. That piece measured Rust against PHP on different databases, and its Rust app was an earlier release.

Memory, build time and size

Memory is where Go sits lowest. The Go server used about 34 MB idle and 59 MB after the load runs on the count route. The Rust server used 47 MB idle and 73 MB after. The PHP-FPM pool, with its eight workers, used about 100 MB idle and 321 MB after.

Memory idle and after load: Go 34 and 59 MB, Rust 47 and 73 MB, PHP-FPM pool 100 and 321 MB
Memory in use, idle and after the load runs.

Otwell’s claim about compile times and disk space holds in my measurements. A cold release build of the Go app took 36 seconds with the modules already downloaded, and the Rust skeleton took 4 minutes 37 seconds on the same four vCPUs. After I edited one handler, the Go rebuild took 1.8 seconds and the Rust release rebuild took 12 seconds. The Go binary was 52 MB (36 MB stripped) and the Rust one was 74 MB (50 MB stripped). Go’s build cache held 472 MB, and Rust’s build directory came to 1.3 GB.

Go against Rust: cold build 36 seconds against 4 minutes 37, rebuild 1.8 against 12 seconds, binary 52 against 74 MB, cache 472 MB against 1.3 GB
What each build costs on the same four vCPUs.

Durable workflows

Workflows are the feature I wanted to see run. They let you write a multi-day flow as one Go method. Laravel runs each step once, saves its result and suspends the run while it sleeps, and the whole thing runs on your existing queue workers. I wrote the onboarding example from the docs, with the sleep shortened to 20 seconds.

Code
type OnboardUser struct {
	UserID       int64 `json:"user_id"`
	SleepSeconds int   `json:"sleep_seconds"`
}

func (o OnboardUser) Handle(run *workflow.Run) error {
	if err := run.Do("send welcome", o.welcome); err != nil {
		return err
	}

	sleep := 3 * 24 * time.Hour
	if o.SleepSeconds > 0 {
		sleep = time.Duration(o.SleepSeconds) * time.Second
	}

	if err := run.Sleep(sleep); err != nil {
		return err
	}

	return run.Do("send tips", o.tips)
}

I started the run with a database queue and one worker. The worker ran the welcome step, and I stopped it during the sleep. I started a second worker, which is a new process, and it ran the tips step once the 20 seconds were up. The welcome step didn’t run again. workflow:show reports the run as completed with the sleep at 22 seconds.

Terminal output of workflow:show for OnboardUser: completed, send welcome, sleep 22 seconds, send tips
The finished run, as workflow:show prints it.
Flow: worker 1 sends welcome, sleeps 20 seconds while stopped, worker 2 sends tips, each step ran once
A second worker picked up the run after the first was stopped.

You don’t have to wait for the real clock in tests. The workflow test helper moves time forward, and this test passes in a fraction of a second.

Code
run := workflowtest.Start(client, workflows.OnboardUser{UserID: 1})
run.AssertStepRan("send welcome").AssertSleeping()

client.Travel(3 * 24 * time.Hour)
run.Advance().AssertStepRan("send tips").AssertCompleted()

Inertia and the frontend

Laravel Go includes full Inertia support for React, Vue and Svelte, with deferred props, live props, prefetching, polling, flash data, history encryption and server-side rendering. The skeleton uses React with Vite. Live props pair Inertia with event broadcasting, so a page refreshes when a matching event fires, and a deferred prop takes any function shaped like func(context.Context) (T, error), so you can hand it a query’s Get method.

The broadcasting side runs on a Reverb WebSocket server written in Go and bundled with the framework, which Otwell mentions in his thread. Apps that prefer server-rendered HTML get views and templates compiled into the binary. The six notes pages above are all Inertia React pages the models built in the second prompt.

The framework’s own tests

I also ran the framework’s own Go test suite from the repository. I ran it with no DATABASE_URL set and with sqlite3 installed. 67 packages passed. The root package failed six OpenTelemetry tracing tests, such as one that expects a span named schedule:run and finds none, and the Reverb package hit my 10-minute limit. I haven’t investigated either, so I can’t say whether the cause is the beta or my environment.

What it costs you

Go costs less than Rust on every build measure I took, and it’s still a new framework. Your team needs Go 1.27, no package from the PHP ecosystem comes across, and it’s a beta. Otwell says Laravel Go and Laravel Rust have full feature parity, and Laravel Cloud’s runtimes page lists Go, which I covered in my piece on Cloud running Rails, Django, Go and Rust apps.

The speed gap to PHP is large and consistent in my test. How much of it survives your app is something only your app can tell you. My routes were deliberately small, and a real app spends its time in queries, templates and third-party calls.

What I’d do

Leave your Laravel PHP app where it is, because Otwell says it isn’t going anywhere. For a new service, I’d try Go before Rust. It kept most of Rust’s throughput in my test, cut the cold build from 4.6 minutes to 36 seconds, uses less memory and disk, and every model I tried built working apps in it, including one with none of the skeleton’s agent files. Pick Rust if your hot path returns lists, because that’s where the gap was widest. If you’re coming from PHP and want the smallest jump, Go’s plain syntax is the shorter one.

Check it yourself

These commands run the generated tests and repeat the load runs against any app on the same port.

Code
go test ./...
autocannon -c 64 -d 15 http://localhost:8000/api/version
autocannon -c 64 -d 15 http://localhost:8000/api/count
autocannon -c 64 -d 15 http://localhost:8000/api/users

Sources

Disclosure: I’m an OpenAI, Firecrawl and Devin ambassador.