Home > Back-end >  has anyone ever tried deploying a laravel project on app engine that uses mongodb as the database?
has anyone ever tried deploying a laravel project on app engine that uses mongodb as the database?

Time:01-31

I am trying to deploy my Laravel 8 REST API to Google App Engine. It runs pretty fine on my local machine but when I try to deploy it to AppEngine, I get the error saying that "Class 'MongoDB\Driver\Manager' not found". Is there any solution to this problem?

CodePudding user response:

extension=mongodb.so to the php.ini

CodePudding user response:

There is some confusion between the Mongo extension and the MongoDB extension which are not the same. Because of your version number, I guess you are using the old Mongo extension that is deprecated.

Make sure that you install the new MongoDB extension and you should be fine. Don't forget to remove the old extension=mongo.so from your php.ini since this could cause problems. For windows users find the Extesnion.

  •  Tags:  
  • Related