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].
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.
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
remove the Laravel Metrics package from your dependencies (and wherever it is used in code)