Skip to content

Commit 8af3c88

Browse files
authored
Add result to example (#10953)
1 parent 0cddb90 commit 8af3c88

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

collections.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ Collection::macro('toLocale', function (string $locale) {
8282
$collection = collect(['first', 'second']);
8383

8484
$translated = $collection->toLocale('es');
85+
86+
// ['primero', 'segundo'];
8587
```
8688

8789
<a name="available-methods"></a>

0 commit comments

Comments
 (0)