php - Class 'MongoId' not found in Laradock application -


using laradock (basically set og docker images laravel development), keep getting class 'mongoid' not found fatalthrowableerror errors when calling new \mongoid( $id ) in php.

this post class 'mongoid' not found (zend framework mongodb doctrine) suggests reason given error php mongo extension isn't enabled.

however, if @ phpinfo() output, can see mongodb section. doesn't mean it's enabled?

what else possibly cause error?

i assume using php 7 version.

in php 7 version new mongodb extension used.

so instead of legacy mongoid should use mongodb\bson\objectid


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -