Skip to content

Commit 65b0e9b

Browse files
committed
rm boot method
1 parent f350136 commit 65b0e9b

14 files changed

+80
-101
lines changed

.editorconfig

100755100644
File mode changed.

.gitignore

100755100644
File mode changed.

.travis.yml

100755100644
File mode changed.

CHANGELOG.md

100755100644
File mode changed.

LICENSE

100755100644
File mode changed.

_config.yml

100755100644
File mode changed.

composer.json

100755100644
File mode changed.

phpunit.xml

100755100644
File mode changed.

readme.md

100755100644
File mode changed.

src/Collection.php

100755100644
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use Illuminate\Support\Collection as BaseCollection;
66

7+
78
class Collection extends BaseCollection
89
{
910

@@ -18,4 +19,16 @@ public function toJson($options = 0)
1819
return json_encode($this->toArray(), $options);
1920
}
2021

22+
/**
23+
* Get the collection of items as Array.
24+
*
25+
* @return string
26+
*/
27+
public function toArray()
28+
{
29+
return array_map(function($item){
30+
return $item->toArray();
31+
}, $this->items);
32+
}
33+
2134
}

0 commit comments

Comments
 (0)