Skip to content

Commit 5525555

Browse files
author
David DiMaria
committed
Implements NodeTrait
1 parent 28b6c96 commit 5525555

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/models/Category.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
<?php
22

3-
class Category extends Kalnoy\Nestedset\Node {
3+
use \Illuminate\Database\Eloquent\Model;
4+
5+
class Category extends Model {
46

57
use \Illuminate\Database\Eloquent\SoftDeletes;
8+
use \Kalnoy\Nestedset\NodeTrait;
69

710
protected $fillable = array('name', 'parent_id');
811

0 commit comments

Comments
 (0)