Skip to content

Commit

Permalink
Upgrade notes for the collection class
Browse files Browse the repository at this point in the history
  • Loading branch information
JosephSilber committed Apr 23, 2015
1 parent 5a4a3b2 commit b98cbf7
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,23 @@ Within your `bootstrap` directory, create a `cache` directory (`bootstrap/cache`

This directory should be writable, and will be used by the framework to store temporary optimization files like `compiled.php`, `routes.php`, `config.php`, and `services.json`.

### The collection class

#### The `groupBy` method now returns nested collections

If you need them to be actual arrays, `map` over them:

$collection->groupBy('type')->map(function($item)
{
return $item->all();
});

#### The `lists` method now returns a collection instance

If you need an actual array, you should call `all()` on the result:

$collection->lists('id')->all();

<a name="upgrade-5.0.16"></a>
## Upgrading To 5.0.16

Expand Down

0 comments on commit b98cbf7

Please sign in to comment.