Fiyinfoluwa Osuntola
Fiyinfoluwa Osuntola

Reputation: 101

Laravel Composer Installation Failed because it conflicts with another require

I am trying to integrate Paystack payment platform to my project. But each time I run the command composer require wisdomanthoni/cashier-paystack, it returns the following error.

./composer.json has been updated
Running composer update wisdomanthoni/cashier-paystack
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 wisdomanthoni/cashier-paystack ^1.0 -> satisfiable by wisdomanthoni/cashier-paystack[v1.0.0].
    - wisdomanthoni/cashier-paystack v1.0.0 requires illuminate/database ~5.7.0|~5.8.0 -> found illuminate/database[v5.7.0, ..., 5.8.x-dev] but these were not loaded, likely because it conflicts with another require.


Installation failed, reverting ./composer.json and ./composer.lock to their original content.

Upvotes: 0

Views: 3507

Answers (2)

Fiyinfoluwa Osuntola
Fiyinfoluwa Osuntola

Reputation: 101

I manually resolved the dependencies by importing the libraries into the project manually and also running a composer update command

Upvotes: 0

Martin Zeitler
Martin Zeitler

Reputation: 76569

Illuminate/Database is currently at version 8.29.0. This means you're installing some Laravel 5.x dependency (likely on Laravel 8.x), which might be incompatible - if not already abandoned. If you cannot find a current version, you'd likely have to fix what you have - or use it with Laravel 5.x.

Upvotes: 1

Related Questions