dimanche 26 juin 2016

GridFS with Laravel doesn't work

I'm using multiple db connections and the main is mysql, so I'm trying to get GridFS like this:

$grid = DB::connection('mongo')->getMongoDB()->getGridFS();

But it's throwing "Call to undefined method MongoDB\Database::getGridFS()".

I've checked phpinfo and pecl drivers mongo and mongodb are up to date. mongodb/mongodb is also 1.0.2 which is up-to-date.

Some thoughts maybe?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire