okaufmann / laravel-web-money-manager-ex

5 stars 1 forks source link

Laravel 5.5 Shift #92

Closed okaufmann closed 5 years ago

okaufmann commented 5 years ago

This pull request includes the changes for upgrading to Laravel 5.5. Feel free to commit any additional changes to the shift-10655 branch.

Before merging, you should:

If you want help with your upgrade, check out the Shift Human Services or join the Shifty Coders Slack room to get answers to all your Laravel questions.

okaufmann commented 5 years ago

❌ Shift could not upgrade the following Middleware since they differed from the default Laravel version. You will need to compare these files against the Laravel 5.5 versions and merge any changes:

okaufmann commented 5 years ago

ℹ Looks like you already have a app/Http/Middleware/TrustProxies.php. Laravel 5.5 added this as a core middleware. You should compare your file to the 5.5 version and upgrade your project accordingly.

okaufmann commented 5 years ago

⚠ Laravel 5.5 streamlined the Exception Handler. Shift was unable to upgrade app/Exceptions/Handler.php. You should compare yours against the Laravel 5.5 version and merge these changes manually.

okaufmann commented 5 years ago

ℹ In Laravel 5.5, the Request has() method returns true for empty strings and null. If you would like to preserve the old behavior of the has() method, you may use the new filled() method instead.

okaufmann commented 5 years ago

ℹ In Laravel 5.5, the Request only() method returns attributes that are actually present in the request payload. If you would like to preserve the old behavior of the only() method, you may use the all() method instead.

okaufmann commented 5 years ago

ℹ In Laravel 5.5, the request() helper will no longer retrieve nested keys. You may instead use the input() method to retrieve nested keys, for example: request()->input('nested.key')

okaufmann commented 5 years ago

❌ Shift could not upgrade the following project files since they differed from the default Laravel version. You will need to compare these project files against the default Laravel 5.5 versions and merge any changes:

okaufmann commented 5 years ago

❌ Shift could not upgrade the following configuration files since they differed from the default Laravel version. You will need to compare these configuration files against the Laravel 5.5 configuration files and merge any changes:

okaufmann commented 5 years ago

ℹ Laravel 5.5 now sets the session cookie name using the APP_NAME. If you rely on the previous laravel_session value, you may set this using the new SESSION_COOKIE environment variable. Review the cookie key in config/session.php for more details.

okaufmann commented 5 years ago

❌ Laravel 5.5 requires PHP 7. You have a modified dependency for PHP in your composer.json. Ensure it meets the new version requirement of >=7.0.0.

okaufmann commented 5 years ago

❌ Laravel 5.5 requires version ~2.0 of the filp/whoops package. You have a modified development dependency for filp/whoops in your composer.json. Ensure it meets the new version requirement of ~2.0.

okaufmann commented 5 years ago

❌ Laravel 5.5 requires version ~3.3 of the fideloper/proxy package. You have a modified dependency for fideloper/proxy in your composer.json. Ensure it meets the new version requirement of ~3.3.

okaufmann commented 5 years ago

❌ Laravel 5.5 has a development dependency for phpunit/phpunit of ~6.0. You have a modified dependency for phpunit/phpunit in your composer.json. Ensure it meets the new version requirement of ~6.0.

okaufmann commented 5 years ago

❌ Laravel 5.5 has a development dependency for laravel/browser-kit-testing of ^2.0. You have a modified dependency for laravel/browser-kit-testing in your composer.json. Ensure it meets the new version requirement of ^2.0.

okaufmann commented 5 years ago

⚠ Shift detected you are using the Laravel BrowserKit Testing package. Laravel changed its testing layer in Laravel 5.4. Once you have verified this upgrade, you can use the Laravel 5.4 Tests Shift to upgrade your tests to the new Laravel testing layer.

okaufmann commented 5 years ago

❌ Several of the Composer scripts changed in Laravel 5.5. Shift was not able to upgrade these automatically. You should compare your composer.json against the Laravel 5.5 version and merge these changes manually.

okaufmann commented 5 years ago

ℹ Laravel 5.5 changed the default format for HTTP exception responses. This may affect your application if you rely upon default JSON responses. Review the Exception Format section of the Upgrade Guide for more detail.

okaufmann commented 5 years ago

ℹ Laravel 5.5 removed bootstrap/autoload.php and uses the Composer vendor/autoload.php instead. If you were referencing bootstrap/autoload.php directly, you should upgrade your application accordingly.

okaufmann commented 5 years ago

ℹ If you are using the database cache driver, you should run php artisan cache:clear when running your upgraded Laravel 5.5 application for the first time.

okaufmann commented 5 years ago

ℹ Laravel 5.5 uses package auto-discovery to make it easier to install and enable packages.

This may require you to update Composer. You may do so by running composer self-update. Review the Composer documentation for more details.

In addition, you may also unregister the providers and aliases for any packages using auto-discovery from your config/app.php.

okaufmann commented 5 years ago

ℹ Shift noticed you have additional namespaces in your project. You should consider using the Consolidate Namespaces Shift to simplify your namespaces into the default Laravel App namespace.