Commit 4009dbc7 authored by Jens Segers's avatar Jens Segers

Readme update

parent efeab583
...@@ -3,6 +3,8 @@ Laravel Eloquent MongoDB [![Build Status](https://travis-ci.org/jenssegers/Larav ...@@ -3,6 +3,8 @@ Laravel Eloquent MongoDB [![Build Status](https://travis-ci.org/jenssegers/Larav
An Eloquent model that supports MongoDB. An Eloquent model that supports MongoDB.
*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
use Jenssegers\Mongodb\Model as Eloquent use Jenssegers\Mongodb\Model as Eloquent
...@@ -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.
```php ```php
'mongodb' => array( 'mongodb' => array(
...@@ -178,4 +180,4 @@ $user = Comment::where('body', 'like', '%spam%')->get(); ...@@ -178,4 +180,4 @@ $user = Comment::where('body', 'like', '%spam%')->get();
**Inserts, updates and deletes** **Inserts, updates and deletes**
All basic insert, update, delete and select methods should be implemented. Feel free to fork and help completing this library! All basic insert, update, delete and select methods should be implemented.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment