Experience the version upgrade of laravel

Sep 9, 2020 PHP MySQL Laravel version upgrade



I am a free PHP engineer.

I recently had the opportunity to work on a project to upgrade Laravel from var5.2 to var6, and I’ve summarized the experience I gained there, albeit roughly. I hope it will be helpful for those who are planning to upgrade from now on!

In addition, it was a version upgrade in an environment where the implementation of the test code is not so much, but if you are writing the test code properly, it is recommended to check it by turning the test!

Basically, it is good to proceed by looking at the published Update Guide.


Depending on the project, there may be more places to check, but it’s a good idea to consult with someone who has a good understanding of the system!

Before running the version upgrade project

It is a good idea to list the notes. For example, if you need to upgrade PHP and use PHP functions frequently, there are some functions that are deprecated, so what kind of measures are required as compensation to unify such list and correction contents. If you leave it, it will be easier to move as a team.

We also recommend that you list the required work.

##Finally It’s easier to upgrade if you write the test code on a regular basis: tada :!