From fa8a2bbdd15684a68578cf2992ec1435e18d17ef Mon Sep 17 00:00:00 2001 From: N1ebieski Date: Tue, 22 Oct 2019 16:12:53 +0200 Subject: [PATCH] Update Entity.php Replace array_pull helper to Illuminate\Support\Arr::pull for Laravel 6 support --- src/Franzose/ClosureTable/Models/Entity.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Franzose/ClosureTable/Models/Entity.php b/src/Franzose/ClosureTable/Models/Entity.php index 110836c..e2b786e 100644 --- a/src/Franzose/ClosureTable/Models/Entity.php +++ b/src/Franzose/ClosureTable/Models/Entity.php @@ -6,6 +6,7 @@ use Franzose\ClosureTable\Extensions\QueryBuilder; use Franzose\ClosureTable\Contracts\EntityInterface; use Franzose\ClosureTable\Extensions\Collection; +use Illuminate\Support\Arr; /** * Basic entity class. @@ -1159,7 +1160,7 @@ public static function createFromArray(array $tree, EntityInterface $parent = nu $entities = []; foreach ($tree as $item) { - $children = array_pull($item, $childrenRelationIndex); + $children = Arr::pull($item, $childrenRelationIndex); /** * @var Entity $entity