File tree Expand file tree Collapse file tree 3 files changed +19
-12
lines changed Expand file tree Collapse file tree 3 files changed +19
-12
lines changed Original file line number Diff line number Diff line change 6
6
7
7
This is a Laravel 4-5 package for working with trees in relational databases.
8
8
9
- * ** Laravel 5.2, 5.3** is supported since v4
9
+ * ** Laravel 5.2, 5.3, 5.4 ** is supported since v4
10
10
* ** Laravel 5.1** is supported in v3
11
11
* ** Laravel 4** is supported in v2
12
12
Original file line number Diff line number Diff line change 13
13
14
14
"require" : {
15
15
"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.* "
19
19
},
20
20
21
- "autoload" : { "psr-4" : { "Kalnoy\\ Nestedset\\ " : " src/" } },
21
+ "autoload" : {
22
+ "psr-4" : {
23
+ "Kalnoy\\ Nestedset\\ " : " src/"
24
+ }
25
+ },
22
26
23
27
"require-dev" : {
24
28
"phpunit/phpunit" : " 4.8.*"
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
- class MenuItem extends \Kalnoy \Nestedset \Node
3
+
4
+ class MenuItem extends \Illuminate \Database \Eloquent \Model
4
5
{
6
+ use \Kalnoy \Nestedset \NodeTrait;
7
+
5
8
public $ timestamps = false ;
6
-
7
- protected $ fillable = [ 'menu_id ' ];
8
-
9
+
10
+ protected $ fillable = ['menu_id ' ];
11
+
9
12
public static function resetActionsPerformed ()
10
13
{
11
14
static ::$ actionsPerformed = 0 ;
12
15
}
13
-
16
+
14
17
protected function getScopeAttributes ()
15
18
{
16
- return [ 'menu_id ' ];
19
+ return ['menu_id ' ];
17
20
}
18
21
19
- }
22
+ }
You can’t perform that action at this time.
0 commit comments