Laravel 5.2 Shift#1
Conversation
Shift automatically applies the Laravel coding style - which uses the PSR-12 coding style as a base with some minor additions. You may customize the code style applied by configuring [Pint](https://laravel.com/docs/pint), [PHP CS Fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer), or [PHP CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer) for your project root. For more information on customizing the code style applied by Shift, [watch this short video](https://laravelshift.com/videos/shift-code-style).
Since PHP 5.4 the short array syntax `[]` may be used instead of `array()`.
Jobs are self handling by default in Laravel 5.2.
Laravel 5.2 adjusts the `Guard` object used within middleware. In addition, new `can` and `throttles` middleware were added.
Laravel 5.2 no longer registers the `Input` facade by default. While still available in Laravel 5, the `Input` facade is removed in Laravel 6.
In an effort to make upgrading the constantly changing config files easier, Shift defaulted them and merged your true customizations - where ENV variables may not be used.
PHP 5.5.9 adds the new static `class` property which provides the fully qualified class name. This is preferred over using strings for class names since the `class` property references are checked by PHP.
|
ℹ️ Shift noticed you have additional namespaces in your application. You may use the Consolidate Namespaces Shift to simplify your namespaces into the default Laravel |
|
❌ Laravel 5.2 modified the default Middleware. Since your middleware differs from the Laravel 5.1 default, you will need to compare the following middleware against the 5.2 versions and merge any changes.
|
|
❌ Laravel 5.2 separates web and API functionality into Middleware Groups. Shift was unable to automate all of these changes. You will need to compare the following files against their 5.2 versions and merge any changes manually.
|
|
❌ The Authentication configuration changed significantly in Laravel 5.2. Since your |
|
ℹ️ Laravel 5.2 introduced a While not required, you may up update your code to use this new helper. If so, be sure to review the URIs to ensure they match. For example, |
|
❌ Laravel 5.2 condenses the default User model dramatically. Since your |
|
Shift found potential uses of these methods in:
|
|
Shift found potential uses of these methods in:
|
|
ℹ️ Laravel 5.2 updated the If your application is currently using the php artisan make:migration add_laravel52_columns_to_sessions_tableThen copy and paste the contents from Shift's |
|
❌ Laravel 5.2 updated the |
|
❌ Laravel 5.2 updated some of the default validation messages. Since your |
|
Shift updated your application to use the |
|
Since the
|
Given the generic naming of these methods, you should review this commit carefully to verify these changes. |
|
|
ℹ️ To improve performance by caching your configuration, Laravel recommends you only use the Shift found potential uses of
|
|
|
ℹ️ Laravel 5.2 removed the |
|
|
|
ℹ️ Laravel 5.2 no longer uses the |
|
For tips on running multiple Shifts effectively, watch upgrading old Laravel applications. |
|
❌ PHP syntax errors were detected after running your Shift. Often these are simply differences between the PHP version on the Shift server (8.1) and your project. Occasionally they are misplaced lines or duplicate import statements. You may quickly check the PHP syntax locally by running
|
This pull request includes the changes for upgrading to Laravel 5.2. Feel free to commit any additional changes to the
shift-92600branch.Before merging, you need to:
shift-92600branchcomposer update(if the scripts fail, add--no-scripts)If you need help with your upgrade, check out the Human Shifts. You may also join the Shifty Coders Slack workspace to level-up your Laravel skills.