Skip to content

Commit b99cdab

Browse files
committed
Merge pull request laravel#2241 from DanielKeeble/5.2
Fix collection anchor name
2 parents cd1f9dc + c9aeb82 commit b99cdab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

collections.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ You may also call the `first` method with no arguments to get the first element
345345

346346
// 1
347347

348-
<a name="method-flatten"></a>
348+
<a name="method-flatmap"></a>
349349
#### `flatMap()` {#collection-method}
350350

351351
The `flatMap` method iterates through the collection and passes each value to the given callback. The callback is free to modify the item and return it, thus forming a new collection of modified items. Then, the array is flattened by a level:

0 commit comments

Comments
 (0)