*This model extends the original Eloquent model so it uses exactly the same methods. Please note that some advanced Eloquent features may not be working, but feel free to issue a pull request!*
Installation
Installation
------------
------------
...
@@ -27,7 +29,7 @@ Add the service provider in `app/config/app.php`:
...
@@ -27,7 +29,7 @@ Add the service provider in `app/config/app.php`:
Usage
Usage
-----
-----
Tell your model to use the MongoDB model and a MongoDB collection:
Tell your model to use the MongoDB model and a MongoDB collection (alias for table):
```php
```php
useJenssegers\Mongodb\ModelasEloquent
useJenssegers\Mongodb\ModelasEloquent
...
@@ -42,7 +44,7 @@ class MyModel extends Eloquent {
...
@@ -42,7 +44,7 @@ class MyModel extends Eloquent {
Configuration
Configuration
-------------
-------------
The model will automatically check the Laravel database configuration array in `app/config/database.php` for a 'mongodb' item.
The model will automatically check the database configuration array in `app/config/database.php` for a 'mongodb' item.