Reputation: 175
When I want to composer install filament/forms using composer require filament/forms:"^2.0"
on a fresh Laravel 9 installation I get the following error:
./composer.json has been updated
Running composer update filament/forms --with-all-dependencies
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires filament/forms 2.0 -> satisfiable by filament/forms[v2.0.0].
- filament/forms v2.0.0 requires laravel/framework ^8.56 -> found laravel/framework[v8.56.0, ..., 8.x-dev] but it conflicts with your root composer.json require (^9.19).
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
Upvotes: 5
Views: 28776
Reputation: 99
if i were in your this trouble, I'll change it manually.
Method 1:
improve "filament/forms" version: Check to see if there is a new version, If they already support higher versions, just composer require
hight version
Method 2:
change "filament/forms"'s composer.json manually. by this case, filament/forms v2.0.0 can try composer requires
"laravel/framework": "^8.56|^9.19". and run to test. if ok, sometimes i will submit PR to the repository. This is often because the author has not updated.
Method 3: fork and depend on your own private repositor. This method is suitable for version conflicts and authors who do not update. for example, fork this "filament/forms" , and change composer.json manually, If there are bugs or other some conflicts, fix them. and then change root(project) composer.json, depend on your own private repository.
I will try to solve the problems in 1-3 order, I hope that will be helpful.
Upvotes: 2