• This repository has been archived on 31/May/2018
  • Stars
    star
    118
  • Rank 299,923 (Top 6 %)
  • Language
    PHP
  • Created almost 12 years ago
  • Updated over 10 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

MongoDB Package for Laravel 4

LMongo Build Status

LMongo is MongoDB package for Laravel 4.

Installation

Add navruzm/lmongo as a requirement to composer.json:

{
    "require": {
        "navruzm/lmongo": "*@dev"
    }
}

And then run composer update

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:

'LMongo\LMongoServiceProvider'

Then find the aliases key and add following line to the array:

'LMongo'          => 'LMongo\Facades\LMongo',
'EloquentMongo'   => 'LMongo\Eloquent\Model',

Finally you need to publish a configuration file by running the following Artisan command.

$ php artisan config:publish navruzm/lmongo

This will copy the default configuration file to app/config/packages/navruzm/lmongo/config.php

Documentation

View the official documentation