Skip to content

Commit

Permalink
Use truthy example for has
Browse files Browse the repository at this point in the history
  • Loading branch information
JosephSilber committed Nov 16, 2016
1 parent b433c67 commit be75383
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions collections.md
Original file line number Diff line number Diff line change
Expand Up @@ -560,9 +560,9 @@ The `has` method determines if a given key exists in the collection:

$collection = collect(['account_id' => 1, 'product' => 'Desk']);

$collection->has('email');
$collection->has('product');

// false
// true

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

0 comments on commit be75383

Please sign in to comment.