Start free
Available now, in beta

Deploy Laravel for Go. One static binary, in your own accounts.

Laravel for Go compiles your application to one static binary that speaks HTTP itself. Brewless builds it, runs its migrations and puts it live as a serverless container in your own Scaleway and bunny.net accounts, with the same two commands as Laravel for PHP.

  • Your code
  • Laravel and packages
  • PHP extensions
  • PHP
  • FrankenPHP
A Laravel for PHP container
36 MB One static binary
  • Your code
  • The framework
  • The web server
Compiled into one file
A Laravel for Go container

Measured on a trial application

On 2 December 2026 a trial application in Laravel for Go went through Brewless to Scaleway in fr-par, behind bunny.net. Its build, its edge and its cold start were measured there; its binary, its start and its memory on a Linux machine of ours, with the same build.

The whole application
36 MB
One static binary that holds your code, the framework and the web server, built with the flags Brewless builds with.
The base image under it
1.6 MB
Compressed. Certificates, time zones and a user: no C library, no shell, no package manager.
Process start to the first 200
About 17 ms
On the health route, on a Linux machine of ours. Four runs: 18, 17, 17 and 17 ms.
Memory at rest, on our machine
24 MB
Resident memory of the process on a Linux machine of ours, before its first request.
After 200 requests, same machine
32 MB
The same process after 200 requests that each wrote a session to PostgreSQL. Not measured on Scaleway.
A public page, from the edge
0.06 s
The second request for a public page was answered by bunny.net with cdn-cache: HIT. The first, which asked the container, took 0.12 seconds.
Cold start from zero, on Scaleway
1.75 s
Two measurements: a request through bunny.net to the web container, which Scaleway had scaled to zero, was answered after 1.75 and 1.74 seconds, the start of the container included. The next took 0.09 seconds.

Measured on 2 December 2026, on one trial application with 512 MB of memory and 0.5 vCPU in fr-par. The cold start is two measurements: read them as observations. The binary, the start and the memory come from a Linux machine of ours, not from Scaleway. Your application compiles its own modules and does its own work, so your figures will differ.

One static binary where a runtime used to be

A Laravel for PHP container carries a web server, PHP and its extensions under your code. A Laravel for Go container carries your static binary on an image with certificates, time zones and a user, and nothing else: no C library, no shell and no package manager.

Per container Laravel for PHP Laravel for Go
Base image, compressed 239 MB 1.6 MB
What the base image holds FrankenPHP with PHP and its extensions Certificates, time zones and a user
What runs FrankenPHP, PHP and your code One static binary of 36 MB
What a build does Installs your Composer packages Compiles your application

Base image sizes are compressed, as the registry stores them. The binary of 36 MB is the trial application, uncompressed.

Compiling takes minutes. The cache gives part of them back.

Go compiles everything your application uses, which takes longer than a Composer install. Brewless keeps Go's downloaded modules and its build cache between deploys, in your own bucket.

First deploy, nothing cached
415 s
Deploy with the cache
217 s

A deploy with the cache

  1. Source in your project 6 s
  2. Image built and pushed 229 s
  3. Release commands 27 s
  4. Web container live and healthy 35 s
Bars drawn to scale, in seconds
A deploy with the cache
$ brewless deploy test
  Deploying go-proef to test at commit a6cf…
  ✓ Source in your project   3s
  ✓ Build started in your project   3s
  ✓ Image built and pushed 229s
  ✓ Release commands  27s
  ✓ Web container live and healthy  35s
  ✓ Workers and schedule   3s
  ✓ Edge settings checked
  Release 5 is live.

Built in your own project

The build runs as a Serverless Job in your own Scaleway project, with 2 vCPU and 4 GB of memory.

One object in your bucket

Go's modules and build cache are kept as one object in your own bucket, and the next build starts from it.

A link, never a key

The build job gets a link to that one object. It never holds a key to your bucket.

The same commit in seconds

A deploy of a commit that was built before takes the image that is there: 23 seconds for the build step.

Measured on 2 December 2026 on the trial application. The first deploy took 10 minutes and 27 seconds in all, of which about 2 minutes went to the DNS of its test address. The deploy in the terminal added the queue and mail to the environment and a dependency to the application, so its build is longer than the 217 seconds of a deploy with nothing new to download. How long your build takes depends on the modules your application compiles.

One module, one line, two commands

A Laravel for Go project needs the Brewless module and one line in main.go. After that the flow is the one you know from Laravel for PHP.

  1. Add the module

    github.com/brewless/laravel-go is the Go counterpart of the Composer package brewless/laravel and the Rust crate brewless-laravel.

    Terminal
    $ go get github.com/brewless/laravel-go
  2. Write the one line

    In main.go the application starts through the module, which makes its URLs follow your own domain behind the edge and lets Brewless run its migrations, schedule and queue.

    Go
    // main.go
    func main() {
        brewless.Run(bootstrap.Options())
    }
  3. Let Brewless read the project

    brewless init recognises a Laravel for Go project from its go.mod and writes brewless.yml. The file has a framework line and no PHP version.

    brewless.yml
    organisation: acme
    application: shop
    framework: laravel-go
    
    release:
      - 'migrate --force'
    
    environments:
      production:
        edge:
          cache: 1h
  4. Deploy

    One command builds the binary, runs the release command and puts the release live once the container is healthy.

    Terminal
    $ brewless deploy production

Everything around the binary stays the same

Brewless works around the container, and that work does not care which language is inside it.

  1. A visitor asks for a public page
  2. bunny.net your account · cdn-cache: HIT
  3. Your binary a Scaleway container, your account
  4. Serverless SQL one DATABASE_URL, over TLS
Brewless builds and releases the binary, and is never a hop in this path.

The same two commands

brewless init writes framework: laravel-go in brewless.yml, and brewless deploy production builds, migrates and goes live. The console shows the release like any other, and says the application runs on Go.

Your own accounts

The container, the database and the bucket live in your Scaleway account and the edge in your bunny.net account. Both bill you directly.

The database

Scaleway Serverless SQL over TLS, handed to the application as one DATABASE_URL. Migrations are compiled into the binary and run as the release command migrate --force before a release goes live.

The edge

A public page without a cookie gets s-maxage. On the trial application the second request for it came from bunny.net, with cdn-cache: HIT. A forged host header was refused with a 400.

Jobs as they arrive

The module signs every job your application puts on Scaleway Queues, with the same signature as the Rust crate. The queue delivers each one to the worker as it arrives, and the module checks the signature and runs that one job, once.

A schedule that lets the worker sleep

A Scaleway cron calls the worker only at the moments your schedule has work. On the trial application a task set to every minute ran every minute.

Mail through Scaleway

The module adds an smtp mailer for Scaleway Transactional Email that reads the same variables as Laravel for PHP and signs in only over TLS or STARTTLS.

Security updates of the image

Brewless watches the Go base image every hour and puts a new one under your live release by itself, without compiling, as it does for PHP and Rust.

Private origin, Shield and secrets

Private origin and Shield are set in the same brewless.yml and work as they do in front of a PHP application. Secrets stay in your own Secret Manager, and every change lands in the same audit trail.

What is different

Six things you should know before the first deploy.

Builds take longer

Compiling takes longer than a Composer install: 415 seconds for the first build of the trial application and 217 seconds for one with the cache.

brewless command, not tinker

brewless tinker runs PHP, so it has nothing to run here. brewless command runs your application's own console commands.

Migrations only go forward

The framework has no rollback command for migrations. A change you want to undo is a new migration.

The CLI is still PHP

The Brewless CLI is a PHP program, so the machine that deploys needs PHP 8.4. Your application and its container do not.

Patches cover Go, not your modules

Security fixes of the base image under your binary are put under the live release by themselves, without compiling. When Go publishes a patch release, Brewless builds your live commit again with it, production last. A fix in a module you depend on is yours: update it and deploy.

A young framework

Laravel for Go is at version 0.x and its API may change before 1.0. The Brewless module follows it release by release.

In every plan, at the same price.

Laravel for Go is part of every Brewless plan, next to Laravel for PHP and Laravel for Rust. Deploy one application and read your own figures.

Start free

Questions

Does Brewless support Laravel for Go?
Yes, in beta. brewless init recognises a Laravel for Go project from its go.mod and writes the framework line in brewless.yml, and brewless deploy production builds the binary, runs the migrations and puts the release live. You need version 1.11.0 of the Brewless CLI.
How long does a build take?
On our trial application the first build took 415 seconds and a build with the cache 217 seconds, because Go's modules and build cache are kept in your own bucket between deploys. That is longer than a Composer install, and your own time depends on the modules your application compiles.
How long does a cold start take?
We measured it twice. On 2 December 2026 a request through bunny.net to the web container of our trial application, which Scaleway had scaled to zero, was answered after 1.75 and 1.74 seconds, and the next after 0.09 seconds. That is one application with 512 MB and 0.5 vCPU, so your own figure will differ.
Do queues and scheduled tasks work?
Yes. Jobs on Scaleway Queues are signed by the module and delivered to the worker as they arrive, and a Scaleway cron runs the schedule at the moments it has work. Both ran on our trial application on Scaleway.
Do I need PHP?
Not in your application or its container: brewless.yml has no PHP version, and the container holds your static binary on a base image without a shell. The Brewless CLI is still a PHP program, so the machine that deploys needs PHP 8.4.
PHP, Rust or Go: which should I pick?
Whichever Laravel your team writes. Brewless deploys all three with the same commands, the same console and the same accounts, at the same price. Laravel for PHP is the one with the most packages; Laravel for Rust and Laravel for Go are young frameworks that compile to one binary.
What does it cost?
Nothing extra. Every Brewless plan includes Laravel for Go at the same price as Laravel for PHP. Scaleway and bunny.net bill you directly for what your application uses.

Read more