Skip to content

Commit 8f08b8c

Browse files
authored
Merge pull request lazychaser#171 from SeoFood/v4
Laravel 5.4
2 parents c7584ba + 98b905c commit 8f08b8c

File tree

3 files changed

+19
-12
lines changed

3 files changed

+19
-12
lines changed

README.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

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

9-
* **Laravel 5.2, 5.3** is supported since v4
9+
* **Laravel 5.2, 5.3, 5.4** is supported since v4
1010
* **Laravel 5.1** is supported in v3
1111
* **Laravel 4** is supported in v2
1212

composer.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,16 @@
1313

1414
"require": {
1515
"php": ">=5.5.9",
16-
"illuminate/support": "5.2.*|5.3.x",
17-
"illuminate/database": "5.2.*|5.3.x",
18-
"illuminate/events": "5.2.*|5.3.x"
16+
"illuminate/support": "5.2.* | 5.3.* | 5.4.*",
17+
"illuminate/database": "5.2.* | 5.3.* | 5.4.*",
18+
"illuminate/events": "5.2.* | 5.3.* | 5.4.*"
1919
},
2020

21-
"autoload": { "psr-4": { "Kalnoy\\Nestedset\\": "src/" } },
21+
"autoload": {
22+
"psr-4": {
23+
"Kalnoy\\Nestedset\\": "src/"
24+
}
25+
},
2226

2327
"require-dev": {
2428
"phpunit/phpunit": "4.8.*"

tests/models/MenuItem.php

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
11
<?php
22

3-
class MenuItem extends \Kalnoy\Nestedset\Node
3+
4+
class MenuItem extends \Illuminate\Database\Eloquent\Model
45
{
6+
use \Kalnoy\Nestedset\NodeTrait;
7+
58
public $timestamps = false;
6-
7-
protected $fillable = [ 'menu_id' ];
8-
9+
10+
protected $fillable = ['menu_id'];
11+
912
public static function resetActionsPerformed()
1013
{
1114
static::$actionsPerformed = 0;
1215
}
13-
16+
1417
protected function getScopeAttributes()
1518
{
16-
return [ 'menu_id' ];
19+
return ['menu_id'];
1720
}
1821

19-
}
22+
}

0 commit comments

Comments
 (0)