laravel-nestedset
laravel-nestedset copied to clipboard
Effective tree structures in Laravel 4-8
Hello developer team how can I fix this error on production? even its working fine on my localhost
When i delete trashed items, it is deleting some items that aren't trashed and that aren't descendants of other trashed items. (i ran ```Folder::fixTree();``` first and it returned zero) ```...
When we have $height === 0 or $distance === 0, QueryBuilder::columnPatch builds SQL expressions like 'when "_rgt" between 12483 and 12496 then **"_rgt"0** else "_rgt" end' AND sql server fails...
Trying to use Laravels [append](https://laravel.com/docs/10.x/eloquent-collections#method-append) method returns an error: `Call to undefined method Kalnoy\\Nestedset\\QueryBuilder::append()` I might be doing something wrong here but the following works for other models but not...
I implemented `NodeTrait` trait on an abstract class, then modified its `ancestors()` method to use `newModelQuery()` instead of `newQuery()` in order to retrieve ancestors without using any global scopes that...
The "id" I have can be in the child. It can happen to parents. In this case, what I want to do is this: I want to see your parents...
Hello, first: thanks for this great package. Really cool eloquent and collection work here. My goal is to display a tree with multiple root nodes, not particularly node 0 or...
Allow me to provide guidance on how to efficiently create a binary tree using a function. First and foremost, it is essential to establish a new column named "position." This...
So I've trying to rebuild a tree as follows: ` public function rebuild() { $json = Storage::disk('local')->get('procrastitracker_report.json'); $json = json_decode($json, true); // $delete = Activity::descendantsAndSelf(1); // Activity::rebuildTree($json, $delete); $root =...