class 'mongodb driver manager' not found laravel

Laravel 6 , PHP , Laravel

Nicesnippets

2520

20-09-2019


In this example,you will solve fatal error to class 'mongodb driver manager' not found laravel 6 project. you can simply solution to the class 'mongodb driver manager' not found laravel then install Mongodb PHP extension in ubuntu 16.04, ubuntu 18.04.

In this post, you will find the solution for issue:

FatalThrowableError in Client.php line 81:

Class 'MongoDB\Driver\Manager' not found

When you are going to connect MongoDB database with any PHP application then you can face this issue if you don't have PHP MongoDB driver.

So first you need to run following command to install Mongodb PHP extension in Ubuntu:

sudo apt-get install php-mongodb

Now restart the server :

sudo service apache2 restart

It will help you...


Recommended Posts