Today in this article, I will show you how we can solve fatal error to class ‘mongodb driver manager’ not found on laravel application. We can simply solution to the class ‘mongodb driver manager’ not found in laravel application then install Mongodb PHP extension in ubuntu 16.04 or ubuntu 18.04.
Now In this post, we will find the best solution for this issue:
FatalThrowableError in Client.php line 81: Class 'MongoDB\Driver\Manager' not found
When we want to connect MongoDB database with any of our PHP application then sometimes we can face this issue if we don’t have PHP MongoDB driver in our project.
So at first we need to run following command to install Mongodb PHP extension in Ubuntu os:
sudo apt-get install php-mongodb
Now need to restart the server :
sudo service apache2 restart
Thanks for read. I hope it help you. For more you can follow us on facebook