Class 'MongoClient' not found

前端 未结 7 1862
灰色年华
灰色年华 2020-11-28 09:19

I\'m trying to make this code run:

tilbud; 

?>

Everytime I g

7条回答
  •  萌比男神i
    2020-11-28 10:00

    The answer is indeed to follow the instructions. I was missing the very important require line that must come before creating the new mongodb object:

    And of course you need to run this command in the root of your project as per the instructions:

    composer require mongodb/mongodb
    

提交回复
热议问题