Using Laradock (basically a set og Docker images for Laravel development), I keep getting Class 'MongoId' not found
FatalThrowableError errors when calling new \MongoId( $id )
in PHP.
This post Class 'MongoId' not found (Zend Framework with MongoDB Doctrine) suggests that the reason for given error is that the PHP Mongo extension isn't enabled.
However, if I look at the phpinfo()
output, I can see mongodb section. Doesn't that mean it's enabled?
What else could possibly cause this error?