I constructed laravel-go-docker-starter so I may attempt the Laravel for Go beta from a clear checkout and get straight to writing a handler. The starter runs the Go app, PostgreSQL, Redis, and a React frontend. Docker and GNU Make are the one instruments you want on the host.
From the repository root, run make init after which make dev. Open /api/model on the utility URL to verify that the Go server is responding. The README then walks by means of registering route.Get("/hey", hey) in routes/api.go and including this handler:
func hey(*net.Request) *net.Response {
return net.JSON(map[string]string{"message": "Hi there from Go!"})
}
Save the file and Air rebuilds the server. Go to /api/hey to see the JSON response. There may be additionally a separate manufacturing Compose file if you wish to discover how the compiled binary, queue employee, and file-based secrets and techniques match collectively.
I examined the walkthrough on macOS with Docker Desktop. If you happen to attempt it on Linux or WSL, I’d admire listening to whether or not you bought to /api/hey and which step, if any, wanted extra rationalization.

