Upgrading Laravel Framework within same major version e.g. 8.xx

 If you came for quick answer:

composer update

To understand why we do this, let's explore a bit in the composer.json file. You will see something like this:       

"require": {
        ...
        "laravel/framework": "^8.12",
        ...
}

We're done. Just be mindful you're also updating a whole list of other dependencies. 

You should be able to specify the version you want by changing the value to example:

"require": {
        ...
        "laravel/framework": "8.32",
        ...
}

For major version upgrades from version 7.x to 8.x or any major releases, you may check the official documentation hereTo find out what the latest versions are: have a look in its official Github page hereIf you ever think of having this done automatically, I recommend to look into Laravel Shift.

Comments