class ‘mongodb driver manager’ not found laravel

Share Me
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  

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

Read Also : How to get last record from table in PHP Laravel 8 Framework?

Thanks for read. I hope it help you. For more you can follow us on facebook

About code chef

My name is Shahriar sagor. I'm a developer. I live in Bangladesh and I love to write tutorials and tips that will help to other Developer's. I am a big fan of PHP, Javascript, JQuery, Laravel, Codeigniter, VueJS, AngularJS and Bootstrap from the early stage.

View all posts by code chef →