Alexander Kalnoy
Alexander Kalnoy
Please add tests that fail, fix and then make sure that other tests don't fail.
```php in Builder.php line 196 at Builder->findOrFail('4') in NodeTrait.php line 822 at fnCategory->setParentIdAttribute('4') in Model.php line 2922 ``` this means that model with an id of `4` is not found
Seems like you're using `category_id` as a primary key and you didn't specify it in Eloquent model
You're using scope attributes but don't set one on new model, it tries to find parent model applying scope and does not succeed. Also, parent_id accepts numeric value, if you've...
Scoping relies on attributes, you simply need to set them. In your case you can do either of following: ```php $model = mCategory::scoped([ 'tree_hash' => $hash ]); or $model =...
What is the need for this method?
Please provide full exception description with call stack.
You want to split node-related stuff to another table, right? Why three tables?
Ah, I see. But converting app to Laravel 5 is a real pain, I would rewrite it completely. Actually, I've been working some time on demo app for the package,...
https://github.com/lazychaser/laravel5-nestedset-demo