lundi 30 janvier 2017

Class MongoDB\Driver\Manager' not found

I am using XAMPP. Installed mongo version 3.4.1 If I hit $mongo command I get -

MongoDB shell version v3.4.1
connecting to: mongodb://127.0.0.1:27017
MongoDB server version: 3.4.1

And If I hit $php -i | grep mongo then I get -

mongodb support => enabled
mongodb version => 1.2.2
mongodb stability => stable
libmongoc version => 1.5.0
mongodb.debug => no value => no value

I have required "jenssegers/mongodb": "^3.1" in laravel version 5.1

I have configured laravel with mongo in database.php Also migrated using PHP artisan mitrate command and tables have been created in mongo.

After routing, I have added just

DB::collection('collection_name')->get();

But I am getting "FatalThrowableError in Client.php line 81: Class 'MongoDB\Driver\Manager' not found" error

Can anybody help me here? I don't know what is happening! Is there something like I have installed mongo from a command prompt and I am using XAMPP?.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire