Skip to content

Commit 784fd5f

Browse files
authored
Merge branch 'master' into #13-ModelRequest-can-take-grandchildren
2 parents f91e44d + 160e759 commit 784fd5f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/Models/CarouselModel.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,9 @@ public function toArray()
107107
->map(function($property){
108108
return $this->flattenRelationships($property);
109109
})
110+
->reject(function($property){
111+
return is_null($property);
112+
})
110113
->toArray();
111114

112115
return $properties;

0 commit comments

Comments
 (0)