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

LucasWEB's avatar

Issues with Laravel platform update using LaravelShift

Hello everyone,

We're currently in the process of updating a Laravel platform from version 5.7 to 10 using LaravelShift. Specifically, we're working on transitioning from version 7.29 to 8.83. However, due to the platform's age, several files in the vendor directory are causing dependency problems during "composer update" (specifically, gurmanalexander/laravel-metrics 1.0.5 and hashids/hashids^3.0).

Regarding gurmanalexander/laravel-metrics, here's the PowerShell output:

  • illuminate/support[v5.6.0, ..., 5.8.x-dev] require php ^7.1.3 -> your php version (8.0.2) does not satisfy that requirement.
  • Root composer.json requires gurmanalexander/laravel-metrics 1.0.5 -> satisfiable by gurmanalexander/laravel-metrics[1.0.5].
  • Conclusion: don't install laravel/framework v8.83.1 (conflict analysis result)
  • gurmanalexander/laravel-metrics 1.0.5 requires illuminate/support 5.1.|5.2.|5.3.|5.4.|5.5.|5. -> satisfiable by illuminate/support[v5.0.0, ..., 5.8.x-dev].
  • Only one of these can be installed: illuminate/support[dev-master, v5.0.0, ..., 5.8.x-dev, v6.0.0, ..., 6.x-dev, v7.0.0, ..., 7.x-dev, v8.0.0, ..., 8.x-dev, v9.0.0-beta.1, ..., 9.x-dev, v10.0.0, ..., 10.x-dev, 11.x-dev], laravel/framework[v8.83.0, ..., 8.x-dev]. laravel/framework replaces illuminate/support and thus cannot coexist with it.

For hashids/hashids^3.0:

  • Root composer.json requires hashids/hashids ^3.0 -> satisfiable by hashids/hashids[3.0.0].
  • hashids/hashids 3.0.0 requires php ^7.1.3 -> your php version (8.0.2) does not satisfy that requirement.

We've already tried using both "composer update" and "composer update --ignore-platform-reqs". Do you have any suggestions on how to resolve this issue? Thank you in advance. I'm available to provide any necessary code snippets.

Best regards

0 likes
3 replies
tykus's avatar
tykus
Best Answer
Level 104

That gurmanalexander/laravel-metrics package has not been maintained; it is time to find a replacement, whereas hashids/hashids is receiving updates -- it is now at version 5.x so you need to

  1. remove the Laravel Metrics package from your dependencies (and wherever it is used in code)
  2. bump hashids/hashids to ^5.0 in composer.json
1 like
tykus's avatar

@LucasWEB no worries; if your issue has been resolved, please mark the thread solved. Otherwise, come back with any other issues

Please or to participate in this conversation.