Skip to content

Commit

Permalink
Merge pull request laravel#1665 from antonybudianto/patch-1
Browse files Browse the repository at this point in the history
Add specific link section for collection methods
  • Loading branch information
taylorotwell committed Jul 9, 2015
2 parents 15a8a45 + 4f29b78 commit c97b588
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eloquent.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ The Eloquent `all` method will return all of the results in the model's table. S
#### Collections

For Eloquent methods like `all` and `get` which retrieve multiple results, an instance of `Illuminate\Database\Eloquent\Collection` will be returned. The `Collection` class provides [a variety of helpful methods](/docs/{{version}}/eloquent-collections) for working with your Eloquent results. Of course, you may simply loop over this collection like an array:
For Eloquent methods like `all` and `get` which retrieve multiple results, an instance of `Illuminate\Database\Eloquent\Collection` will be returned. The `Collection` class provides [a variety of helpful methods](/docs/{{version}}/eloquent-collections#available-methods) for working with your Eloquent results. Of course, you may simply loop over this collection like an array:

foreach ($flights as $flight) {
echo $flight->name;
Expand Down

0 comments on commit c97b588

Please sign in to comment.