cachethq / cachet

🚦 The open-source status page system.
https://cachethq.io
MIT License
14.06k stars 1.56k forks source link

Laravel 5.7 Shift #4083

Closed jbrooksuk closed 1 year ago

jbrooksuk commented 4 years ago

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

Before merging, you need to:

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.

jbrooksuk commented 4 years ago

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

jbrooksuk commented 4 years ago

:warning: Laravel 5.7 changed the environment variable QUEUE_DRIVER to QUEUE_CONNECTION. Shift automated this change. However, you should review this server configuration or .env files outside your project to see if they need to be changed.

jbrooksuk commented 4 years ago

:warning: Since you are upgrading from an older version of Laravel, Shift defaulted your customized configuration files to improve the automation in your next Shift. This was done in a separate commit so you may easily reference and backfill your customizations once you have upgraded to the latest version.

jbrooksuk commented 4 years ago

:information_source: Laravel 5.7 removed the Blade "or" operator in favor of PHP's built-in ?? "null coalesce" operator.

Shift automated this change. However, your application may still contain instances of or if you are using Blade syntax outside of the resources folder.

jbrooksuk commented 4 years ago

:x: Laravel 5.7 has a development dependency for fzaninotto/faker of ^1.4. You have a modified dependency for fzaninotto/faker in your composer.json. You should review your dependency and ensure it meets the new version requirement.

jbrooksuk commented 4 years ago

:x: Laravel 5.7 has a development dependency for filp/whoops of ^2.0. You have a modified dependency for filp/whoops in your composer.json. You should review your dependency and ensure it meets the new version requirement.

jbrooksuk commented 4 years ago

:x: Laravel 5.7 has a development dependency for mockery/mockery of ^1.0. You have a modified dependency for mockery/mockery in your composer.json. You should review your dependency and ensure it meets the new version requirement.

jbrooksuk commented 4 years ago

:x: Laravel 5.7 has a development dependency for phpunit/phpunit of ^7.0. You have a modified dependency for phpunit/phpunit in your composer.json. You should review your dependency and ensure it meets the new version requirement.

jbrooksuk commented 4 years ago

:information_source: Laravel 5.7 removed the resources/assets folder in favor of placing its sub-folders directly under resources. Shift moved these for you automatically. However, you may need to update the paths configured in your frontend build tool (e.g. webpack.mix.js) to reflect this new structure.

While Shift encourages a fully upgraded application, this new structure is not required. If this change significantly impairs your frontend build process, you can revert this commit.

jbrooksuk commented 4 years ago

:information_source: Laravel 5.7 now supports email verification when users register for your application. If you have implemented this feature yourself you may now be able to take advantage of this native functionality. For more details, review the documentation on Email Verification.

jbrooksuk commented 4 years ago

:information_source: While it was common to customize in previous versions, Laravel now recommends keeping the default App namespace. This will also improve your upgrade process. You can easily change it to the default by running php artisan app:name App. After doing so, you are welcome to request a rerun of this Shift.

jbrooksuk commented 4 years ago

:x: PHP syntax errors were detected after running your Shift. Often these are simply differences between the PHP version of Shift and your project. Occasionally they are misplaced lines.

You can check the PHP syntax by running php -l on the following files: