laravel-mongoDB connection issue(Windows 10)

277 Views Asked by At

I need to configure mongoDB into laravel, for that I have installed MongoDB in my machine, and also enabled PHP extension for MongoDB. enter image description here

Then I wrote the following command to import the MongoDB library in laravel. composer require jenssegers/mongodb I got the following errors: enter image description here

enter image description here

Kindly, guide me to resolve this issue.

1

There are 1 best solutions below

0
On

jenssegers/mongodb package is not compatible with laravel 7.2 which you are using at the moment, now only 5.8 and 6.0 are supported.

Here is part of composer.json from jenssegers/mongodb github:

composer.json of jenssegers/mongodb