Skip to content

Commit

Permalink
Merge pull request #3788 from manniL/patch-1
Browse files Browse the repository at this point in the history
Add new array_wrap behaviour to doc
  • Loading branch information
taylorotwell authored Oct 21, 2017
2 parents bf09f12 + 233bfbd commit 23d77be
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions helpers.md
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,14 @@ The `array_wrap` function wraps the given value in an array. If the given value
$array = array_wrap($string);

// ['Laravel']

If the given value is null, an empty array will be returned:

$nothing = null;

$array = array_wrap($nothing);

// []

<a name="method-data-fill"></a>
#### `data_fill()` {#collection-method}
Expand Down

0 comments on commit 23d77be

Please sign in to comment.