The Laravel 5.6 Shift automates the upgrade of your Laravel application from Laravel 5.5 to Laravel 5.6. Using the Laravel 5.6 Shift to automatically upgrade your Laravel application has an estimated time savings of 1 hour.
- A Laravel application running Laravel 5.5.0+.
- A server running PHP 7.1.3+.
The Laravel 5.6 Shift automates many of the upgrades listed in the Laravel Upgrade Guide, including:
- Adding new core configuration for Laravel 5.6.
- Changing methods in Eloquent models.
- Finding outdated references to Log interfaces and classes.
- Detecting backward incompatibilities within your application code.
composer.jsonfor Laravel 5.6.
In addition to the Core Upgrades, the Laravel 5.6 Shift performs additional upgrade beyond those listed in the Laravel Upgrade Guide, including:
- Adopting the PSR-2 coding style to match the coding style in Laravel.
- Modernizing PHP syntax, such as the short array syntax.
- Converting string references to classes to
- Updating core config files to their Laravel 5.6 versions.
There are some upgrades the Laravel 5.6 Shift can not perform automatically. When Shift detects these upgrades it adds a detailed comment on the Pull Request to help guide the manual upgrade.
- Laravel 5.6 now uses Bootstrap 4. Since this likely affects front-end code, Shift can not automate these changes.