简体   繁体   中英

laravel-mongoDB connection issue(Windows 10)

I need to configure mongoDB into laravel, for that I have installed MongoDB in my machine, and also enabled PHP extension for MongoDB. 在此处输入图片说明

Then I wrote the following command to import the MongoDB library in laravel. composer require jenssegers/mongodb I got the following errors: 在此处输入图片说明

在此处输入图片说明

Kindly, guide me to resolve this issue.

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 :

jenssegers/mongodb 的 composer.json

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM