Upgrading
- Introduction
- How upgrades work
- Running an upgrade
- Adding the upgrade skill to an existing application
Introduction
Laravel for Go is currently in beta. Releases before 1.0 may include breaking changes to APIs and configuration.
Upgrading a Laravel for Go application is designed to be handled by your AI coding agent. Every release ships its own version-matched documentation inside the Go module, including a release-by-release upgrade log (docs/upgrade.md), and every new application includes an upgrading-laravel-go Agent Skill that knows how to bump the module, migrate your codebase, and verify your test suite.
How upgrades work
Upgrades rely on two pieces working together:
- A bundled upgrade guide (
docs/upgrade.md). Alongside the version-matched reference guides insidego.laravel.com, each release bundles adocs/upgrade.mdfile listing every breaking API change, what to search for, before-and-after migration examples, and notable default or behavioral changes organized by release. Because it ships inside the module itself, your agent reads the exact instructions for the release you are upgrading to rather than relying on training data or guesswork. - The
upgrading-laravel-goskill. Every new application includes.agents/skills/upgrading-laravel-go/SKILL.md, which walks your coding agent through the full upgrade process from bumpinggo.modto verifying your tests.
Because docs/upgrade.md is organized chronologically by release, you can also jump across multiple releases in a single pass. Your agent applies every version section strictly newer than your starting version in order from oldest to newest.
Running an upgrade
Applications created with a recent starter kit already include .agents/skills/upgrading-laravel-go/SKILL.md and list it in AGENTS.md. To upgrade, ask your coding agent:
1Upgrade Laravel to the latest version.1Upgrade Laravel to the latest version.
You may also ask for a specific release, such as "Upgrade Laravel to v0.2.0". Following the skill, your agent will:
- Record the currently installed version of
go.laravel.com. - Bump
go.laravel.comingo.modand rungo mod tidy. - Locate the newly installed module's
docs/directory and readdocs/upgrade.mdin full. - Search your application for every breaking change between your previous and target versions, apply the migrations that affect your code, and update any local
.agents/skills/examples that changed. - Format, vet, and test your application (
gofmt,go vet ./...,go test ./..., andgo run . route:list), then report what changed along with any behavioral or.envdefaults worth reviewing before you deploy.
Adding the upgrade skill to an existing application
If your application was created before the upgrading-laravel-go skill was added to the starter kit, paste the following prompt into your coding agent to install the skill, register it in AGENTS.md, and run the upgrade in one step:
1Download https://raw.githubusercontent.com/laravel/go/0.x/.agents/skills/upgrading-laravel-go/SKILL.md into .agents/skills/upgrading-laravel-go/SKILL.md, list `upgrading-laravel-go` under the Skills section of AGENTS.md if it isn't already there, and then follow that skill to upgrade this application to the latest release of go.laravel.com.1Download https://raw.githubusercontent.com/laravel/go/0.x/.agents/skills/upgrading-laravel-go/SKILL.md into .agents/skills/upgrading-laravel-go/SKILL.md, list `upgrading-laravel-go` under the Skills section of AGENTS.md if it isn't already there, and then follow that skill to upgrade this application to the latest release of go.laravel.com.
Once .agents/skills/upgrading-laravel-go/SKILL.md is committed to your repository, future upgrades only need a quick prompt asking your agent to upgrade Laravel.