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

lanoow's avatar
Level 1

Upgrading Laravel from v10 to v12

I'm trying to migrate my e-commerce store to v12, however I'm getting frustrated with the composer upgrade... I've followed the upgrade guide in the docs however I cannot get pass nunomaduro/collision. I get this error after running composer upgrade -W:

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires nunomaduro/collision ^8.1 -> satisfiable by nunomaduro/collision[v8.1.0, ..., v8.8.0].
    - Root composer.json requires spatie/laravel-permission ^5.10 -> satisfiable by spatie/laravel-permission[5.10.0, ..., 5.11.1].
    - nunomaduro/collision v8.1.0 requires symfony/console ^7.0.2 -> satisfiable by symfony/console[v7.0.2, ..., v7.2.5].
    - nunomaduro/collision v8.1.1 requires symfony/console ^7.0.4 -> satisfiable by symfony/console[v7.0.4, ..., v7.2.5].
    - nunomaduro/collision v8.3.0 requires symfony/console ^7.1.2 -> satisfiable by symfony/console[v7.1.2, ..., v7.2.5].
    - nunomaduro/collision v8.4.0 requires symfony/console ^7.1.3 -> satisfiable by symfony/console[v7.1.3, ..., v7.2.5].
    - nunomaduro/collision v8.5.0 requires symfony/console ^7.1.5 -> satisfiable by symfony/console[v7.1.5, ..., v7.2.5].
    - nunomaduro/collision[v8.6.0, ..., v8.7.0] require symfony/console ^7.2.1 -> satisfiable by symfony/console[v7.2.1, v7.2.5].
    - nunomaduro/collision v8.8.0 requires symfony/console ^7.2.5 -> satisfiable by symfony/console[v7.2.5].
    - Conclusion: don't install symfony/console v7.2.5 (conflict analysis result)
0 likes
5 replies
tykus's avatar

You need to identify the correct versions of your project's various dependencies to work with Laravel 12, and change them in your composer.json before running composer update.

lanoow's avatar
Level 1

Here's my composer.json I've looked at them but can't find anything out of the ordinary.

tykus's avatar

@lanoow well, the first dependency on the list darryldecode/cart is immediately an issue for Laravel 12 - it basically seems to be abandoned and last supported Laravel is v11.

You need to visit the Packagist / Github repo for each package to see where it is at in terms of PHP and Laravel version support compared with your base requirements.

tykus's avatar

@lanoow a word of note; if a package such as that Cart package is basically abandoned; you will need to find an alternative (which likely will require some rewriting of your logic), or find a recent fork that addresses the lack of support for Laravel 12

Please or to participate in this conversation.