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?
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/28W6kV3
via IFTTT
Aucun commentaire:
Enregistrer un commentaire