We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48b3708 commit ef44b1bCopy full SHA for ef44b1b
docs/as-a-data-transfer-object/collections.md
@@ -92,7 +92,7 @@ class SongData extends Data
92
Now when collecting an array data objects a `SongCollection` will be returned:
93
94
```php
95
-SongData::collect([
+SongData::collectArray([
96
['title' => 'Never Gonna Give You Up', 'artist' => 'Rick Astley'],
97
['title' => 'Living on a prayer', 'artist' => 'Bon Jovi'],
98
]); // returns an SongCollection of SongData objects
0 commit comments