Shift with red gradient lettering

Upgrade Laravel 6.x to Laravel 7.x

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

Laravel 7 has reached end of life. It no longer receives bug fixes or security updates. Shift strongly recommends continuing your upgrade to the latest stable release of Laravel.

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

Requirements

  • A Laravel application running Laravel 6.x.
  • A server running PHP 7.2.5 or higher.

Core Upgrades

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

  • Converting method signatures for the underlying Symfony 5 changes.
  • Replacing references to the deprecated Resource class.
  • Renaming core methods to their new names.
  • Adding the new laravel/ui package dependency.
  • Detecting backward incompatibilities within your application code.
  • Updating composer.json for Laravel 7.x.

Additional Upgrades

In addition to the Core Upgrades, the Laravel 7.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.
  • Converting string based class references to ::class references.
  • Updating core config files to their Laravel 7 versions.
  • Migrating core references to their new location.
  • Bumping the constraints for known package dependencies.

Manual Upgrades

There are some upgrades the Laravel 7.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 community packages, you may need to update some of your dependencies manually. Always review the changelog for your dependencies for any additional changes.

Sign in with any of the following services to connect Shift with your Laravel project.


Don't use one of these services?

Temporarily push your project to a free, private repository on one of these cloud-based services or upgrade your project locally with Shift for Docker.