LMongo
LMongo is MongoDB package for Laravel 4., (*1)
Installation
Add navruzm/lmongo
as a requirement to composer.json:, (*2)
{
"require": {
"navruzm/lmongo": "*@dev"
}
}
And then run composer update
, (*3)
Once Composer has installed or updated your packages you need to register LMongo. Open up app/config/app.php
and find the providers
key and add:, (*4)
'LMongo\LMongoServiceProvider'
Then find the aliases
key and add following line to the array:, (*5)
'LMongo' => 'LMongo\Facades\LMongo',
'EloquentMongo' => 'LMongo\Eloquent\Model',
Finally you need to publish a configuration file by running the following Artisan command., (*6)
$ php artisan config:publish navruzm/lmongo
This will copy the default configuration file to app/config/packages/navruzm/lmongo/config.php, (*7)
Documentation
View the official documentation, (*8)