Tag Archives: MongoDB

Configure MongoDB in Laravel

Prerequisites: MongoDB(Must be installed and working properly) PHP(Must be installed and working properly) MongoDB PHP driver(Must be installed and working properly) Let’s start now. First install the Laravel MongoDB library(https://github.com/jenssegers/laravel-mongodb)

And add the service provider in config/app.php:

You may also register an alias for the MongoDB model by adding the following to the… Read More »

Add MongoDB extension to PHP in windows

[[ Add MongoDB extension to PHP in windows ]] Download(http://pecl.php.net/package/mongodb) the appropriate Non Thread Safe MongoDB extension based on your PHP version. Extract the downloaded archive and put php_mongodb.dll in your PHP extension directory (“ext” by default). Now, add the following line to your php.ini file:

That’s all. you can check using phpinfo() function… Read More »