Skip to content

Commit e0554e4

Browse files
committed
Readme update
1 parent df32364 commit e0554e4

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

Diff for: README.md

+10-8
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,11 @@ Sessions
8888

8989
If you want a MongoDB session driver, check out https://github.com/jenssegers/Laravel-MongoDB-Session
9090

91-
More examples
91+
Documentation
9292
-------------
9393

94+
### Basic Usage
95+
9496
**Retrieving All Models**
9597

9698
$users = User::all();
@@ -172,10 +174,6 @@ Aggregations can be combined with **where**:
172174

173175
$user = Comment::where('body', 'like', '%spam%')->get();
174176

175-
**Inserts, updates and deletes**
176-
177-
All basic insert, update, delete and select methods should be implemented.
178-
179177
**Incrementing or decrementing a value of a column**
180178

181179
Perform increments or decrements (default 1) on specified attributes:
@@ -192,7 +190,11 @@ You may also specify additional columns to update:
192190
User::where('age', '29')->increment('age', 1, array('group' => 'thirty something'));
193191
User::where('bmi', 30)->decrement('bmi', 1, array('category' => 'overweight'));
194192

195-
**Relations**
193+
### Inserts, updates and deletes
194+
195+
All basic insert, update, delete and select methods should be implemented.
196+
197+
### Relations
196198

197199
Supported relations are:
198200

@@ -224,7 +226,7 @@ And the inverse relation:
224226

225227
Other relations are not yet supported, but may be added in the future. Read more about these relations on http://four.laravel.com/docs/eloquent#relationships
226228

227-
**Raw Expressions**
229+
### Raw Expressions
228230

229231
These expressions will be injected directly into the query.
230232

@@ -241,7 +243,7 @@ Or you can access the internal object directly:
241243

242244
User::raw()->find();
243245

244-
**Query Caching**
246+
### Query Caching
245247

246248
You may easily cache the results of a query using the remember method:
247249

0 commit comments

Comments
 (0)