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

igmacedo's avatar

Resolve composer incompatibility/defiance with php 8

My composer did not welcome the new php 8

I'm ignoring the requirements, even so he refuses to install and update packages, the problem is that he doesn't consider php 8 a higher version

composer require xxxxxx --no-update --ignore-platform-reqs && php artisan config:publish xxxxxx

Using version ^1.0 for xxxxxx ./composer.json has been updated Running composer update xxxxxx Loading composer repositories with package information Updating dependencies Your requirements could not be resolved to an installable set of packages.

Problem 1 - laravel/ui is locked to version v2.3.0 and an update of this package was not requested. - laravel/ui v2.3.0 requires php ^7.2.5 -> your php version (8.0.0) does not satisfy that requirement.

0 likes
1 reply
Sinnbeck's avatar

Try setting laravel/ui to "^3.1" in your composer.json

Please or to participate in this conversation.