Commit 9d878930 authored by Jens Segers's avatar Jens Segers

Updating readme

parent 00b7f695
...@@ -70,6 +70,8 @@ The MongoDB query builder allows you to execute queries, just like the original ...@@ -70,6 +70,8 @@ The MongoDB query builder allows you to execute queries, just like the original
$users = MDB::collection('users')->get(); $users = MDB::collection('users')->get();
$user = MDB::collection('users')->where('name', 'John')->first(); $user = MDB::collection('users')->where('name', 'John')->first();
Read more about the query builder on http://laravel.com/docs/queries
More examples More examples
------------- -------------
...@@ -173,3 +175,5 @@ You may also specify additional columns to update: ...@@ -173,3 +175,5 @@ You may also specify additional columns to update:
User::where('age', '29')->increment('age', 1, array('group' => 'thirty something')); User::where('age', '29')->increment('age', 1, array('group' => 'thirty something'));
User::where('bmi', 30)->decrement('bmi', 1, array('category' => 'overweight')); User::where('bmi', 30)->decrement('bmi', 1, array('category' => 'overweight'));
Read more about the Eloquent on http://laravel.com/docs/eloquent
\ No newline at end of file
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