Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

astur103's avatar

Automated scripts to upgrade major versions of Laravel

Hi All,

I think that Laravel should start to consider seriously to add scripts to upgrade Laravel to the new major versions.

You are very active to add new features but I think you should also equally so professional people to help to upgrade Laravel to new major versions, so you will avoid security issues for your users, tedious works with unexpected consequences, and a long etcetera.

Unfortunately, I see that this is not being taken so seriously as it should be, while I have already seen in several sources how one of the setbacks of using frameworks like yours is "the forever" tasks of upgrading to new major versions to avoid security issues in the future.

I think this should be converted into an automated process by Laravel or helped as much as possible with scripts coming from the Laravel team, who knows exactly where the changes are and can offer reliable upgrading processes.

As any publicly available and exposed code, the bugs are also public for the hackers.

Please, think about this.

Kind regards, Astur

0 likes
5 replies
ismaile's avatar
ismaile
Best Answer
Level 30

Hi,

In case you don't know it, there is a chargeable service to upgrade Laravel. It's called Laravel shift: https://laravelshift.com/

Hope this helps

Snapey's avatar

And after you install Laravel, make sure you leave it and do not change any code so that your project can be upgraded automatically

It’s a 15 minute job.

You could do it in the time it took to write your rant

astur103's avatar

For Snapey: I see you didn't understand what I said.

I meant from major to major versions.

The only rant here is your lack of understanding. Rude and impolite guy.

You never know who is behind a post.

astur103's avatar

For ismaile: Ok. I understand, so I can see that you need to pay for it.

Good to know that there is a solution at least.

Snapey's avatar

You think I am rude. Thats ok. My point is that the framework IS upgraded automatically. That's what we have composer for. You tell it you want to upgrade and it does the necessary to the framework and makes sure you have all the right dependencies for the current version.

The maintainers of Laravel cannot possibly know how you have reconfigured things within your own App namespace. They cannot account for what other packages you have brought in or how you have changed the stubs that they provided with the framework.

Laravel Shift does a good job at checking your code to see if you have code that could do with converting over. It does not do this automatically for you, it creates a pull request which you then should check suggestion by suggestion to see if the change is something you want to adopt.

It's a good solution if you have a large application and don't want to miss anything, but the upgrade notes are also good and in most cases 50% of the items on the list won't even apply to your application.

Please or to participate in this conversation.