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?
3 Answers
run composer dump-autoload
or php artisan optimize
Delete Following Files and Use This Step :
composer.lock
bootstrap/cache/config.php
if exist
bootstrap/cache/services.php
then Run this command :
composer install
php artisan config:cache
AshishAshishI didn't have the archive:myproject/vendor/jenssegers.
I installed this archive by command:
Stephen KennedyVista Driver Manager
Not the answer you're looking for? Browse other questions tagged phpmongodblaravellaravel-5 or ask your own question.
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
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.
SethSethIn this article you will know how to connect MongoDB with Laravel.https://appdividend.com/2018/05/10/laravel-mongodb-crud-tutorial-with-example/