etrepat / baum

Baum is an implementation of the Nested Set pattern for Laravel's Eloquent ORM.
http://etrepat.com/baum
MIT License
2.24k stars 460 forks source link

Method Illuminate\Database\Eloquent\Collection::insideSubtree does not exist. #311

Open mkwsra opened 5 years ago

mkwsra commented 5 years ago

I'm getting this error:

Method Illuminate\Database\Eloquent\Collection::insideSubtree does not exist.

When I'm using the function makeChildOf()

I'm using it within my model as:

use Baum\NestedSet\Node as HasNestedSetProperties;
.....

class X extends Model
{
    use HasNestedSetProperties;
.....

Besides, I couldn't find the documentation for v2, PLEASE let me know if there is any,

You are much appreciated @etrepat 👏