Find file
Fetching contributors…
Cannot retrieve contributors at this time
37 lines (19 sloc) 954 Bytes

Mongor ORM



php artisan bundle:install mongor

Bundle Registration

Add the following to your application/bundles.php file:

'mongor' => array('auto' => true),

Edit config/database.php with your database connection details.



To use a model you need to create a file in the models folder with the name of the class, just like Eloquent

class User extends Mongor\Model {}

Where User is the name (lower case) of the collection in MongoDB.


Using MongoDB for authentication is now very easy! Only change the driver in application/config/auth.php to mongo and set the corresponding model.


This is a bundle based on mikelbring library, I only adapted it for use with Laravel 3 with models. It's very basic, so if you have any issues please fork or write an issue ticket.