Skip to content

Commit 447736c

Browse files
authored
Merge pull request #19 from peckrob/master
Fix for Lumen 5.7 compatibility.
2 parents 67903a8 + 1efa347 commit 447736c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NestableCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function nest()
5555
// Add empty collection to each items.
5656
$collection = $this->each(function ($item) {
5757
if (!$item->{$this->childrenName}) {
58-
$item->{$this->childrenName} = App::make('Illuminate\Support\Collection');
58+
$item->{$this->childrenName} = app()->make('Illuminate\Support\Collection');
5959
}
6060
});
6161

0 commit comments

Comments
 (0)