Home > Software engineering >  What is the best approach when upgrading Laravel project to 9.0 from 6.0?
What is the best approach when upgrading Laravel project to 9.0 from 6.0?

Time:06-07

When upgrading from laravel 6 to 9 is it better to go 6 -> 7 -> 8 -> 9 or one can safely jump from 6 to 9?

CodePudding user response:

Do you mean which upgrade guides to follow or how to technically upgrade?

You need to make sure you handle all changes introduced in 7, 8 and 9, so you'd need to read every upgrade guide separately.

But technically you can jump from 6 to 9.

I personally prefer to start a fresh project and then apply my codebase to it, gradually. That way you end up having a new boilerplate as well, as sometimes new Laravel versions introduce new useful files in the project root.

CodePudding user response:

Recommended will be to upgrade to the latest version. But also note that will be some functionalities that will be outdated in the new version which you will need to be aware. And there will be the need to learn the new added features too.

You can heard to the laravel site for how to upgrade to version 9.

  • Related