Can any one know how to configure mongoDB with laravel5, there is a package
{
"require": {
"navruzm/lmongo": "*"
}
}
But it work in laravel4, Is anyone configure it in laravel5 or used another alternative ?
The dev branch of jenssegers will work with L5 but its dev branch so not to be relied on.
Also Laravel 5 is not officially released or stable yet so it would not be advised to do anything worthwhile with the current V5.
Your require info will be as follows :
{
"require": {
"jenssegers/mongodb": "*"
}
}
add in the service provider to your app.php
'Jenssegers\Mongodb\MongodbServiceProvider',
The service provider will register a mongodb database extension with the original database manager. There is no need to register additional facades or objects. When using mongodb connections, Laravel will automatically provide you with the corresponding mongodb objects.
Everything else should be as normal with L5 as with L4. More information on the installation and configuring is available at the development git repo.