Laravel Class 'mongodb\driver\manager Not Found For Mac

Active3 months ago

I want to use https://github.com/jenssegers/laravel-mongodb for connecting to Mongodb with laravel 5, i have installed MongoDB php driver and then laravel-mongodb with command composer require jenssegers/mongodb, then added service provider in app/config/app.php:

Hi all, I'm getting a quite frustrated by how hard it seems to be to set up MongoDB with Laravel. So far I have installed the MongoDB composer package. Creating that file resolves some Class 'MongoDB Driver Manager' not found errors. The Mongo extension is not symlinked for the PHP CLI, so any Artisan commands that need Mongo (like database migrations) don't work.

and refreshed my website, unfortunately i got error ->

how can i fix it?

George Chumburidze
George ChumburidzeGeorge Chumburidze

3 Answers

run composer dump-autoload or php artisan optimize

disf.asiadisf.asia

Delete Following Files and Use This Step :

composer.lock

bootstrap/cache/config.php

if exist

bootstrap/cache/services.php

Mac

then Run this command :

composer install

php artisan config:cache

AshishAshish
2,0691 gold badge7 silver badges24 bronze badges

I didn't have the archive:myproject/vendor/jenssegers.

I installed this archive by command:

Stephen Kennedy
8,80513 gold badges58 silver badges78 bronze badges
Gonzalo Quispe FernandezGonzalo Quispe Fernandez

Vista Driver Manager

Not the answer you're looking for? Browse other questions tagged phpmongodblaravellaravel-5 or ask your own question.

Active11 months ago

How to use MongoDB with Laravel

Computer Driver Manager

just needs the basic info.
How to configure Mongo on Laravel.
Environment requirements for Mongo for local development and for deployment on shared hosting.

Any tutorial or video series.I am using windows.

Driver Manager Program

Ashutosh SharmaAshutosh Sharma

2 Answers

Use the MongoDB Module for Laravel. Details can be found in the official Laravel module documentation. For MongoDB requirements see the MongoDB documentation.

SethSeth
6,9621 gold badge12 silver badges29 bronze badges

In this article you will know how to connect MongoDB with Laravel.https://appdividend.com/2018/05/10/laravel-mongodb-crud-tutorial-with-example/

Azhar SEAzhar SE

Not the answer you're looking for? Browse other questions tagged apache-http-servermongodbcomputing-environment or ask your own question.