The Laravel 5.8 Shift automates the upgrade of your Laravel application from Laravel 5.7 to Laravel 5.8. Using the Laravel 5.8 Shift to automatically upgrade your Laravel application has an estimated time savings of 1 hour.
- A Laravel application running Laravel 5.7.0+.
- A server running PHP 7.1.3+.
The Laravel 5.8 Shift automates many of the upgrades listed in the Laravel Upgrade Guide, including:
- Translating the TTL for Cache methods from minutes to seconds.
- Removing unnecessary
deleted_atdate cast from
- Upgrading core Middleware to their Laravel 5.8 versions.
- Moving Markdown assets to their new folder structure.
- Detecting backward incompatibilities within your application code.
- Converting Blade syntax.
composer.jsonfor Laravel 5.8.
In addition to the Core Upgrades, the Laravel 5.8 Shift performs additional upgrade beyond those listed in the Laravel Upgrade Guide, including:
- Adopting the Laravel code style.
- Modernizing PHP syntax, such as the short array syntax.
- Converting string based class references to
- Converting deprecated string and array helper functions to their respective
- Updating core config files to their Laravel 5.8 versions.
There are some upgrades the Laravel 5.8 Shift can not perform automatically. When Shift detects these it adds a detailed comment on the Pull Request to help guide the manual upgrade.