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 b7ff337 commit 9c34dbdCopy full SHA for 9c34dbd
src/model/Collection.php
@@ -29,8 +29,8 @@ class Collection extends BaseCollection
29
{
30
public function toView(string $view)
31
32
- $this->each(function (Model $model) use($view) {
33
- $model->toView($view);
+ return $this->map(function (Model $model) use($view) {
+ return $model->toview($view);
34
});
35
}
36
0 commit comments