PHP
Need help with lmongo?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.
navruzm

Description

MongoDB Package for Laravel 4

125 Stars 39 Forks 72 Commits 0 Opened issues

Services available

Need anything else?

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

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.