Skip to content

Commit 9c0ae24

Browse files
committed
SUpport l6.0
1 parent 086807a commit 9c0ae24

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ language: php
33
php:
44
- 5.5
55
- 5.6
6-
- 7.0
6+
- 7.1
7+
- 7.2
78

89
before_script:
910
- curl -s http://getcomposer.org/installer | php

README.markdown

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
[![Latest Unstable Version](https://poser.pugx.org/kalnoy/nestedset/v/unstable.svg)](https://packagist.org/packages/kalnoy/nestedset)
55
[![License](https://poser.pugx.org/kalnoy/nestedset/license.svg)](https://packagist.org/packages/kalnoy/nestedset)
66

7-
This is a Laravel 4-5 package for working with trees in relational databases.
7+
This is a Laravel 4-6 package for working with trees in relational databases.
88

9-
* **Laravel 5.7, 5.8** is supported since v5
10-
* **Laravel 5.5, 5.6** is supported since v4.3
9+
* **Laravel 5.7, 5.8, 6.0** is supported since v5
10+
* **Laravel 5.5, 5.6, 5.7, 5.8, 6.0** is supported since v4.3
1111
* **Laravel 5.2, 5.3, 5.4** is supported since v4
1212
* **Laravel 5.1** is supported in v3
1313
* **Laravel 4** is supported in v2

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313

1414
"require": {
1515
"php": ">=7.1.3",
16-
"illuminate/support": "~5.7.0|~5.8.0",
17-
"illuminate/database": "~5.7.0|~5.8.0",
18-
"illuminate/events": "~5.7.0|~5.8.0"
16+
"illuminate/support": "~5.7.0|~5.8.0|~6.0",
17+
"illuminate/database": "~5.7.0|~5.8.0|~6.0",
18+
"illuminate/events": "~5.7.0|~5.8.0|~6.0"
1919
},
2020

2121
"autoload": {

src/NodeTrait.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
use Illuminate\Database\Eloquent\Model;
88
use Illuminate\Database\Eloquent\Relations\BelongsTo;
99
use Illuminate\Database\Eloquent\Relations\HasMany;
10+
use Illuminate\Support\Arr;
1011
use LogicException;
1112

1213
trait NodeTrait
@@ -752,7 +753,7 @@ public function newCollection(array $models = array())
752753
*/
753754
public static function create(array $attributes = [], self $parent = null)
754755
{
755-
$children = array_pull($attributes, 'children');
756+
$children = Arr::pull($attributes, 'children');
756757

757758
$instance = new static($attributes);
758759

0 commit comments

Comments
 (0)