Skip to content

Commit

Permalink
Flip key values to correct response in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
pajcho committed Jun 3, 2015
1 parent 604be61 commit 6c233b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion collections.md
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ The `forget` method removes an item from the collection by its key:

$collection->all();

// ['laravel' => 'framework']
// [framework' => 'laravel']

> **Note:** Unlike most other collection methods, `forget` does not return a new modified collection; it modifies the collection it is called on.
Expand Down

0 comments on commit 6c233b3

Please sign in to comment.