Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions collections.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ For the majority of the remaining collection documentation, we'll discuss each m
[times](#method-times)
[toArray](#method-toarray)
[toJson](#method-tojson)
[toPrettyJson](#method-toprettyjson)
[toPrettyJson](#method-to-pretty-json)
[transform](#method-transform)
[undot](#method-undot)
[union](#method-union)
Expand Down Expand Up @@ -3334,7 +3334,7 @@ $collection->toJson();
// '{"name":"Desk", "price":200}'
```

<a name="method-toprettyjson"></a>
<a name="method-to-pretty-json"></a>
#### `toPrettyJson()` {.collection-method}

The `toPrettyJson` method converts the collection into a formatted JSON string using the `JSON_PRETTY_PRINT` option:
Expand Down