You can let an AI coding agent upgrade your Laravel app and check its work before anything reaches your main code. An AI coding agent is a tool that edits code and runs commands in your project on its own. Claude Code and Cursor are two examples, and GitHub Copilot has one too.

The agent works on a separate branch. A branch is a copy of your code where changes wait until you approve them. The agent follows Laravel’s official upgrade guide, which lists what has to change for each new version. When it finishes, it opens a pull request. That is the page on GitHub where you review every change on the branch before it goes into your main code. You read through the changes and run your tests. If everything passes, you merge the pull request to add those changes to your main code.

For the move from Laravel 12 to 13, Laravel’s upgrade guide describes its own AI workflow. You install Laravel Boost, which is Laravel’s free add-on that gives AI agents instructions and documentation written for Laravel. Then you run the /upgrade-laravel-v13 command in your agent. That command only works on Laravel 12 apps. If your app is older, the agent works through the upgrade guides one major version at a time. Either way, the agent writes the code, and you decide what gets merged and deployed. Deploying means putting the new code on your live server.

What should you check before the agent starts?

  1. Find out which Laravel version you have. You can check composer.json and composer.lock. Composer is the tool that installs PHP packages. composer.json lists the packages your app needs, and composer.lock records the exact versions installed.
  2. Check which PHP version runs on your computer and on your live server (production). Also check the PHP version in continuous integration (CI), which is the service that runs your tests every time the code changes. Laravel 13 needs PHP 8.3 or higher everywhere the upgraded code runs.
  3. Commit or stash any changes you haven’t saved in Git yet. Committing saves them in Git, and stashing puts them aside for later. That way, the agent starts from a clean working tree, meaning your code has no open changes in it.
  4. Run your test suite and write down what already fails. That helps you tell old problems apart from new ones caused by the upgrade.

Which upgrade path fits your Laravel version?

Laravel publishes one upgrade guide for each major version, like 12 or 13. Each guide lists its breaking changes, which are updates that can stop your existing code from working.

Your version What to do
Laravel 12 Install Laravel Boost 2.x and run the /upgrade-laravel-v13 command. Or give any agent Laravel’s upgrade guide for 12 to 13 so it can follow that.
Laravel 11 First upgrade to 12 with the guide for 11 to 12, and merge that pull request. Then upgrade to 13.
Laravel 10 or older Upgrade one major version at a time. Merge each step before you start the next one.

To set up Boost in a Laravel 12 app, run these two commands. The installer will ask which agent you use.

composer require laravel/boost --dev
php artisan boost:install

What should you tell the agent?

Give the agent one clear task, and tell it what it must not do. You can adapt this prompt:

Upgrade this application from Laravel [current version] to Laravel [target version].

First inspect the Laravel and PHP versions, Composer dependencies, project instructions,
CI checks, and current test results. Follow the official upgrade guide for this exact
version transition.

Make changes on this branch only. Do not merge or deploy. Preserve existing project
conventions and avoid unrelated refactoring. Run the documented tests and checks.

In your summary, list dependency changes, breaking changes addressed, commands run
and their results, unresolved risks, and checks you could not run.

If you use Boost’s /upgrade-laravel-v13 command, include the last paragraph of this prompt with it. That tells the agent what to put in its summary.

When composer update runs without errors, it only means Composer found package versions that fit together. It doesn’t prove your app still works. Only your tests can tell you that.

What changes in Laravel 13?

Laravel calls 13 a relatively minor upgrade, and its upgrade guide estimates 10 minutes for it. The guide highlights these changes as the ones most likely to affect your app.

  • Request forgery protection (high impact). Laravel has a middleware against CSRF. CSRF is when another website tricks a visitor’s browser into sending requests that change data in your app. A middleware is code that checks each request before your app handles it. In Laravel 13, the middleware is renamed from VerifyCsrfToken to PreventRequestForgery. The old names VerifyCsrfToken and ValidateCsrfToken still work for now. Even so, you should update any place where your code names the middleware directly, such as tests or routes that turn it off.
  • Cache serializable_classes (medium impact). When your app stores a PHP object in the cache, PHP turns the object into text. When it reads the cache, it turns that text back into an object, a step called unserializing. The new default cache config doesn’t unserialize PHP objects. If your app stores objects in the cache, list their classes in the serializable_classes option.

One of the lower-impact changes can log your users out. A new Laravel 13 app sets session serialization to json. Session serialization is the format Laravel uses to store the data for each user’s session. If you copy that default into an existing app, everyone who is logged in gets logged out. To keep your users logged in, leave the setting at php.

How do you check the agent’s work?

When the agent finishes, review its pull request before anything goes into your main code.

  1. Read the agent’s summary and compare it with the list of changes in the upgrade guide.
  2. Look at the diff of composer.json and composer.lock. The diff shows which lines changed. Then check the diff of each config file the agent edited.
  3. Check every place where your code names middleware, and review your session settings. Look closely at any database queries the upgrade touched.
  4. Let your own CI run the tests on the pull request. Laravel’s test command is php artisan test.
  5. Click through the important parts of the app that your tests don’t cover, like login and checkout.
  6. Merge the pull request yourself. If your servers run an older PHP version, update it first. Then deploy the way you always do.

Which AI tool should you use for a Laravel upgrade?

Several tools can handle the upgrade for you. The main differences are where the agent runs and what it costs.

Tool Where it works Strengths Limits Price
Laravel Boost with an agent like Claude Code or Cursor On your computer, in your editor or terminal You get Laravel’s official /upgrade-laravel-v13 command, and the agent can read Laravel’s docs. Boost is open source. The command only works for the step from 12 to 13. The agent runs on your computer, so you start it and watch it yourself. Boost is free. You pay for the plan of the agent you use.
GitHub Copilot cloud agent On GitHub, in a cloud environment You give it a GitHub issue, and it opens a pull request. You can set up the environment it works in, for example by giving it passwords and keys as secrets. It only works with GitHub. You need a paid Copilot plan. Copilot Pro starts at $10 a month. Copilot Business costs $19 a month for each user.
Vroni, the AI coding agent On GitHub. Each task gets a new, clean cloud environment. You give it a task in its dashboard or in a GitHub issue. It opens a pull request with a summary of what it did. It never merges or deploys, and it never pushes to your main branch. It only works with GitHub. Its environment only has PHP 8.4, with no MySQL or PostgreSQL database and no Docker. It can’t change files in .github/workflows, and it can’t install private packages. The Solo plan costs $299 a month and includes 2 hours of work. The Team plan costs $1,199 a month and includes 10 hours.

Prices are from each vendor’s pricing page in November 2026.

GitHub Copilot cloud agent is included in all paid Copilot plans. GitHub lists them on its plans page.

Vroni works on GitHub. You install the Vroni GitHub App and pick the repositories it can work on. You pay for the minutes Vroni works, and the time a task waits in the queue is free. The upgrade guide in Vroni’s docs shows sample upgrade tasks, and the pricing page lists credit packs.