laravel-nestedset
laravel-nestedset copied to clipboard
Effective tree structures in Laravel 4-8
Hi, depth is not calculated properly when fetching a nested set as a relation on another model. Depth is set to -1 for all records. This is my case: I...
What happens: In QueryBuilder:fixTree() method there is a section where the code is choosing the "to be selected" columns. This line raises an issue for us since our Entity requires...
This allows fixTree method select extra columns for model that require extra keys (for example cache key or cloud key) to work properly. What happens: In QueryBuilder:fixTree() method there is...
the `Category` model is nested,and `Book` model relation it by "many to many". now I want to get all books of root category node exp: `id = 1` and its...
when i use withDepth()->find($id), somethin wrong happend; i noted strict mode,but my db is Postgresql. @niuny-mb ljfl-api % php artisan tinker Psy Shell v0.9.12 (PHP 7.3.9 — cli) by Justin...
Hi, I was wondering if there's a possibility we could implement a feature where we could get a tree with max depth. The issue I have is while building comments...
Hello everybody. Today in my validate I have the following: ` $ request-> validate ([ 'name' => "required | unique: docscategories, name, NULL, id, deleted_at, NULL, parent_id, NULL | max:...
I am using like `$comments = Comment::whereIsRoot()->with('descendants')->paginate();` but wrong result returned, such as ,somecomment has one descendants, but it returned nothing, some comment get 4 descendants but it only returned...
Hi, I had to do hack today to get depth scoping to work with descendants. For example if you want just the next 2 levels of children on a given...