Hi, I am trying to implement baum to Eloquent without using Laravel (so no service providers). All I do is extend my Model with \Baum\Node. Now, when I use the makeRootOf method:
$category->makeChildOf($parentCategory);
I get this error:
Catchable fatal error: Argument 1 passed to Baum\Move::setEventDispatcher() must be an instance of Illuminate\Events\Dispatcher, null given, called in /vendor/baum/baum/src/Baum/Move.php on line 73 and defined in /vendor/baum/baum/src/Baum/Move.php on line 337
Is it impossible to implement this feature without Laravel or am I doing something wrong?
Hi, I am trying to implement baum to Eloquent without using Laravel (so no service providers). All I do is extend my Model with \Baum\Node. Now, when I use the makeRootOf method:
I get this error:
Is it impossible to implement this feature without Laravel or am I doing something wrong?