Shift with red gradient lettering
Loading navigation...

Upgrade Laravel 12.x to Laravel 13.x

The Laravel 13.x Shift automates the upgrade of your Laravel application from Laravel 12.x to Laravel 13.x. Using the Laravel 13.x Shift to automatically upgrade your Laravel application has an estimated time savings of 1 hour.

Laravel 13 will be officially released in the coming weeks. This Shift is offered at a discount pre-release for early adopters to test their applications on Laravel 13.

Screenshot of a pull request with automated changes from the Laravel 13.x Shift

Requirements

  • A Laravel application running Laravel 12.x.
  • A server running PHP 8.3 or higher.

Core Upgrades

The Laravel 13.x Shift automates many of the upgrades listed in the Laravel Upgrade Guide, including:

  • Upgrading changes within the core Laravel project files.
  • Merging new configuration options and ENV variables.
  • Converting the model $casts property to a method.
  • Detecting deprecated code within your application code.
  • Updating core dependencies for Laravel 13 and PHP 8.3.

Additional Upgrades

In addition to the Core Upgrades, the Laravel 13.x Shift performs additional upgrades beyond those listed in the Laravel Upgrade Guide, including:

  • Applying your code style.
  • Modernizing PHP syntax, such as short arrays and the null safe operator.
  • Adopting new PHP Attributes available in Laravel.
  • Refactoring deprecated $request->get() calls.
  • Adding Laravel composer run script.
  • Bumping your dependencies for popular packages.

Manual Upgrades

There are some upgrades the Laravel 13.x Shift can not perform automatically. When Shift detects these it adds a detailed comment to the Pull Request to guide any additional steps you may need to do manually.

While Shift attempts to detect and automate the updates for popular packages, you may need to update some of your dependencies manually. Always review the changelog for your dependencies for any additional changes.