Can I directly Upgrade Laravel 5.5 to Laravel 6?

Viewed 995

I need to upgrade my website from Laravel 5.5 to Laravel 6.

Can I directly upgrade to it?

Laravel 5.5 => Laravel 6.x

Or

Do I need to upgrade step by step?

Laravel 5.5 => Laravel 5.6 => Laravel 5.7 => Laravel 5.8 => Laravel 6.x

Or

Let me know any other optimum way.

Thanks in advance.

1 Answers

Laravel 5.5 => Laravel 5.6 => Laravel 5.7 => Laravel 5.8 => Laravel 6.x

That is the way because Laravel has the upgrade documentations only for one lower version.

If you do a direct upgrade to 6.x, there are high chances that you miss some of the internal version changes in your code which will cause you a lot of headaches to resolve and locate later.

If you go step by step, you will be able to test your application or api after each upgrade and resolve the issue and take the help of individual upgrade documentation.

Makes sense?

Related