{"id":13396149,"url":"https://github.com/lazychaser/laravel-nestedset","last_synced_at":"2025-05-06T01:22:14.912Z","repository":{"id":10886481,"uuid":"13176870","full_name":"lazychaser/laravel-nestedset","owner":"lazychaser","description":"Effective tree structures in Laravel 4-8","archived":false,"fork":false,"pushed_at":"2025-04-22T19:38:02.000Z","size":411,"stargazers_count":3722,"open_issues_count":206,"forks_count":478,"subscribers_count":96,"default_branch":"v6","last_synced_at":"2025-04-23T21:52:03.147Z","etag":null,"topics":["hierarchical-data","laravel","menus","nested-set","php","tree-structure","trees"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lazychaser.png","metadata":{"files":{"readme":"README.markdown","changelog":"CHANGELOG.markdown","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2013-09-28T16:44:21.000Z","updated_at":"2025-04-23T13:16:27.000Z","dependencies_parsed_at":"2023-09-27T14:33:42.981Z","dependency_job_id":"67e22782-e3c4-41eb-9c2e-2c89046dcabd","html_url":"https://github.com/lazychaser/laravel-nestedset","commit_stats":{"total_commits":224,"total_committers":37,"mean_commits":6.054054054054054,"dds":0.3303571428571429,"last_synced_commit":"f7a36eb3779ee4119a8ea72404aaf90c44fc9a15"},"previous_names":[],"tags_count":61,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lazychaser%2Flaravel-nestedset","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lazychaser%2Flaravel-nestedset/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lazychaser%2Flaravel-nestedset/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lazychaser%2Flaravel-nestedset/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lazychaser","download_url":"https://codeload.github.com/lazychaser/laravel-nestedset/tar.gz/refs/heads/v6","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252602430,"owners_count":21774760,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hierarchical-data","laravel","menus","nested-set","php","tree-structure","trees"],"created_at":"2024-07-30T18:00:41.327Z","updated_at":"2025-05-06T01:22:14.891Z","avatar_url":"https://github.com/lazychaser.png","language":"PHP","readme":"[![Build Status](https://travis-ci.org/lazychaser/laravel-nestedset.svg?branch=master)](https://travis-ci.org/lazychaser/laravel-nestedset)\n[![Total Downloads](https://poser.pugx.org/kalnoy/nestedset/downloads.svg)](https://packagist.org/packages/kalnoy/nestedset)\n[![Latest Stable Version](https://poser.pugx.org/kalnoy/nestedset/v/stable.svg)](https://packagist.org/packages/kalnoy/nestedset)\n[![Latest Unstable Version](https://poser.pugx.org/kalnoy/nestedset/v/unstable.svg)](https://packagist.org/packages/kalnoy/nestedset)\n[![License](https://poser.pugx.org/kalnoy/nestedset/license.svg)](https://packagist.org/packages/kalnoy/nestedset)\n\nThis is a Laravel package for working with trees in relational databases.\n\n*   **Laravel 12.0** is supported since v6.0.5\n*   **Laravel 11.0** is supported since v6.0.4\n*   **Laravel 10.0** is supported since v6.0.2\n*   **Laravel 9.0** is supported since v6.0.1\n*   **Laravel 8.0** is supported since v6.0.0\n*   **Laravel 5.7, 5.8, 6.0, 7.0** is supported since v5\n*   **Laravel 5.5, 5.6** is supported since v4.3\n*   **Laravel 5.2, 5.3, 5.4** is supported since v4\n*   **Laravel 5.1** is supported in v3\n*   **Laravel 4** is supported in v2\n\n__Contents:__\n\n- [Theory](#what-are-nested-sets)\n- [Documentation](#documentation)\n    -   [Inserting nodes](#inserting-nodes)\n    -   [Retrieving nodes](#retrieving-nodes)\n    -   [Deleting nodes](#deleting-nodes)\n    -   [Consistency checking \u0026 fixing](#checking-consistency)\n    -   [Scoping](#scoping)\n- [Requirements](#requirements)\n- [Installation](#installation)\n\nWhat are nested sets?\n---------------------\n\nNested sets or [Nested Set Model](http://en.wikipedia.org/wiki/Nested_set_model) is\na way to effectively store hierarchical data in a relational table. From wikipedia:\n\n\u003e The nested set model is to number the nodes according to a tree traversal,\n\u003e which visits each node twice, assigning numbers in the order of visiting, and\n\u003e at both visits. This leaves two numbers for each node, which are stored as two\n\u003e attributes. Querying becomes inexpensive: hierarchy membership can be tested by\n\u003e comparing these numbers. Updating requires renumbering and is therefore expensive.\n\n### Applications\n\nNSM shows good performance when tree is updated rarely. It is tuned to be fast for\ngetting related nodes. It'is ideally suited for building multi-depth menu or\ncategories for shop.\n\nDocumentation\n-------------\n\nSuppose that we have a model `Category`; a `$node` variable is an instance of that model\nand the node that we are manipulating. It can be a fresh model or one from database.\n\n### Relationships\n\nNode has following relationships that are fully functional and can be eagerly loaded:\n\n-   Node belongs to `parent`\n-   Node has many `children`\n-   Node has many `ancestors`\n-   Node has many `descendants`\n\n### Inserting nodes\n\nMoving and inserting nodes includes several database queries, so it is\nhighly recommended to use transactions.\n\n__IMPORTANT!__ As of v4.2.0 transaction is not automatically started\n\nAnother important note is that __structural manipulations are deferred__ until you\nhit `save` on model (some methods implicitly call `save` and return boolean result\nof the operation).\n\nIf model is successfully saved it doesn't mean that node was moved. If your application\ndepends on whether the node has actually changed its position, use `hasMoved` method:\n\n```php\nif ($node-\u003esave()) {\n    $moved = $node-\u003ehasMoved();\n}\n```\n\n#### Creating nodes\n\nWhen you simply creating a node, it will be appended to the end of the tree:\n\n```php\nCategory::create($attributes); // Saved as root\n```\n\n```php\n$node = new Category($attributes);\n$node-\u003esave(); // Saved as root\n```\n\nIn this case the node is considered a _root_ which means that it doesn't have a parent.\n\n#### Making a root from existing node\n\n```php\n// #1 Implicit save\n$node-\u003esaveAsRoot();\n\n// #2 Explicit save\n$node-\u003emakeRoot()-\u003esave();\n```\n\nThe node will be appended to the end of the tree.\n\n#### Appending and prepending to the specified parent\n\nIf you want to make node a child of other node, you can make it last or first child.\n\n*In following examples, `$parent` is some existing node.*\n\nThere are few ways to append a node:\n\n```php\n// #1 Using deferred insert\n$node-\u003eappendToNode($parent)-\u003esave();\n\n// #2 Using parent node\n$parent-\u003eappendNode($node);\n\n// #3 Using parent's children relationship\n$parent-\u003echildren()-\u003ecreate($attributes);\n\n// #5 Using node's parent relationship\n$node-\u003eparent()-\u003eassociate($parent)-\u003esave();\n\n// #6 Using the parent attribute\n$node-\u003eparent_id = $parent-\u003eid;\n$node-\u003esave();\n\n// #7 Using static method\nCategory::create($attributes, $parent);\n```\n\nAnd only a couple ways to prepend:\n\n```php\n// #1\n$node-\u003eprependToNode($parent)-\u003esave();\n\n// #2\n$parent-\u003eprependNode($node);\n```\n\n#### Inserting before or after specified node\n\nYou can make `$node` to be a neighbor of the `$neighbor` node using following methods:\n\n*`$neighbor` must exists, target node can be fresh. If target node exists,\nit will be moved to the new position and parent will be changed if it's required.*\n\n```php\n# Explicit save\n$node-\u003eafterNode($neighbor)-\u003esave();\n$node-\u003ebeforeNode($neighbor)-\u003esave();\n\n# Implicit save\n$node-\u003einsertAfterNode($neighbor);\n$node-\u003einsertBeforeNode($neighbor);\n```\n\n#### Building a tree from array\n\nWhen using static method `create` on node, it checks whether attributes contains\n`children` key. If it does, it creates more nodes recursively.\n\n```php\n$node = Category::create([\n    'name' =\u003e 'Foo',\n\n    'children' =\u003e [\n        [\n            'name' =\u003e 'Bar',\n\n            'children' =\u003e [\n                [ 'name' =\u003e 'Baz' ],\n            ],\n        ],\n    ],\n]);\n```\n\n`$node-\u003echildren` now contains a list of created child nodes.\n\n#### Rebuilding a tree from array\n\nYou can easily rebuild a tree. This is useful for mass-changing the structure of\nthe tree.\n\n```php\nCategory::rebuildTree($data, $delete);\n```\n\n`$data` is an array of nodes:\n\n```php\n$data = [\n    [ 'id' =\u003e 1, 'name' =\u003e 'foo', 'children' =\u003e [ ... ] ],\n    [ 'name' =\u003e 'bar' ],\n];\n```\n\nThere is an id specified for node with the name of `foo` which means that existing\nnode will be filled and saved. If node is not exists `ModelNotFoundException` is\nthrown. Also, this node has `children` specified which is also an array of nodes;\nthey will be processed in the same manner and saved as children of node `foo`.\n\nNode `bar` has no primary key specified, so it will be created.\n\n`$delete` shows whether to delete nodes that are already exists but not present\nin `$data`. By default, nodes aren't deleted.\n\n##### Rebuilding a subtree\n\nAs of 4.2.8 you can rebuild a subtree:\n\n```php\nCategory::rebuildSubtree($root, $data);\n```\n\nThis constraints tree rebuilding to descendants of `$root` node.\n\n### Retrieving nodes\n\n*In some cases we will use an `$id` variable which is an id of the target node.*\n\n#### Ancestors and descendants\n\nAncestors make a chain of parents to the node. Helpful for displaying breadcrumbs\nto the current category.\n\nDescendants are all nodes in a sub tree, i.e. children of node, children of\nchildren, etc.\n\nBoth ancestors and descendants can be eagerly loaded.\n\n```php\n// Accessing ancestors\n$node-\u003eancestors;\n\n// Accessing descendants\n$node-\u003edescendants;\n```\n\nIt is possible to load ancestors and descendants using custom query:\n\n```php\n$result = Category::ancestorsOf($id);\n$result = Category::ancestorsAndSelf($id);\n$result = Category::descendantsOf($id);\n$result = Category::descendantsAndSelf($id);\n```\n\nIn most cases, you need your ancestors to be ordered by the level:\n\n```php\n$result = Category::defaultOrder()-\u003eancestorsOf($id);\n```\n\nA collection of ancestors can be eagerly loaded:\n\n```php\n$categories = Category::with('ancestors')-\u003epaginate(30);\n\n// in view for breadcrumbs:\n@foreach($categories as $i =\u003e $category)\n    \u003csmall\u003e{{ $category-\u003eancestors-\u003ecount() ? implode(' \u003e ', $category-\u003eancestors-\u003epluck('name')-\u003etoArray()) : 'Top Level' }}\u003c/small\u003e\u003cbr\u003e\n    {{ $category-\u003ename }}\n@endforeach\n```\n\n#### Siblings\n\nSiblings are nodes that have same parent.\n\n```php\n$result = $node-\u003egetSiblings();\n\n$result = $node-\u003esiblings()-\u003eget();\n```\n\nTo get only next siblings:\n\n```php\n// Get a sibling that is immediately after the node\n$result = $node-\u003egetNextSibling();\n\n// Get all siblings that are after the node\n$result = $node-\u003egetNextSiblings();\n\n// Get all siblings using a query\n$result = $node-\u003enextSiblings()-\u003eget();\n```\n\nTo get previous siblings:\n\n```php\n// Get a sibling that is immediately before the node\n$result = $node-\u003egetPrevSibling();\n\n// Get all siblings that are before the node\n$result = $node-\u003egetPrevSiblings();\n\n// Get all siblings using a query\n$result = $node-\u003eprevSiblings()-\u003eget();\n```\n\n#### Getting related models from other table\n\nImagine that each category `has many` goods. I.e. `HasMany` relationship is established.\nHow can you get all goods of `$category` and every its descendant? Easy!\n\n```php\n// Get ids of descendants\n$categories = $category-\u003edescendants()-\u003epluck('id');\n\n// Include the id of category itself\n$categories[] = $category-\u003egetKey();\n\n// Get goods\n$goods = Goods::whereIn('category_id', $categories)-\u003eget();\n```\n\n#### Including node depth\n\nIf you need to know at which level the node is:\n\n```php\n$result = Category::withDepth()-\u003efind($id);\n\n$depth = $result-\u003edepth;\n```\n\nRoot node will be at level 0. Children of root nodes will have a level of 1, etc.\n\nTo get nodes of specified level, you can apply `having` constraint:\n\n```php\n$result = Category::withDepth()-\u003ehaving('depth', '=', 1)-\u003eget();\n```\n\n__IMPORTANT!__ This will not work in database strict mode\n\n#### Default order\n\nAll nodes are strictly organized internally. By default, no order is\napplied, so nodes may appear in random order and this doesn't affect\ndisplaying a tree. You can order nodes by alphabet or other index.\n\nBut in some cases hierarchical order is essential. It is required for\nretrieving ancestors and can be used to order menu items.\n\nTo apply tree order `defaultOrder` method is used:\n\n```php\n$result = Category::defaultOrder()-\u003eget();\n```\n\nYou can get nodes in reversed order:\n\n```php\n$result = Category::reversed()-\u003eget();\n```\n\nTo shift node up or down inside parent to affect default order:\n\n```php\n$bool = $node-\u003edown();\n$bool = $node-\u003eup();\n\n// Shift node by 3 siblings\n$bool = $node-\u003edown(3);\n```\n\nThe result of the operation is boolean value of whether the node has changed its\nposition.\n\n#### Constraints\n\nVarious constraints that can be applied to the query builder:\n\n-   __whereIsRoot()__ to get only root nodes;\n-   __hasParent()__ to get non-root nodes;\n-   __whereIsLeaf()__ to get only leaves;\n-   __hasChildren()__ to get non-leave nodes;\n-   __whereIsAfter($id)__ to get every node (not just siblings) that are after a node\n    with specified id;\n-   __whereIsBefore($id)__ to get every node that is before a node with specified id.\n\nDescendants constraints:\n\n```php\n$result = Category::whereDescendantOf($node)-\u003eget();\n$result = Category::whereNotDescendantOf($node)-\u003eget();\n$result = Category::orWhereDescendantOf($node)-\u003eget();\n$result = Category::orWhereNotDescendantOf($node)-\u003eget();\n$result = Category::whereDescendantAndSelf($id)-\u003eget();\n\n// Include target node into result set\n$result = Category::whereDescendantOrSelf($node)-\u003eget();\n```\n\nAncestor constraints:\n\n```php\n$result = Category::whereAncestorOf($node)-\u003eget();\n$result = Category::whereAncestorOrSelf($id)-\u003eget();\n```\n\n`$node` can be either a primary key of the model or model instance.\n\n#### Building a tree\n\nAfter getting a set of nodes, you can convert it to tree. For example:\n\n```php\n$tree = Category::get()-\u003etoTree();\n```\n\nThis will fill `parent` and `children` relationships on every node in the set and\nyou can render a tree using recursive algorithm:\n\n```php\n$nodes = Category::get()-\u003etoTree();\n\n$traverse = function ($categories, $prefix = '-') use (\u0026$traverse) {\n    foreach ($categories as $category) {\n        echo PHP_EOL.$prefix.' '.$category-\u003ename;\n\n        $traverse($category-\u003echildren, $prefix.'-');\n    }\n};\n\n$traverse($nodes);\n```\n\nThis will output something like this:\n\n```\n- Root\n-- Child 1\n--- Sub child 1\n-- Child 2\n- Another root\n```\n\n##### Building flat tree\n\nAlso, you can build a flat tree: a list of nodes where child nodes are immediately\nafter parent node. This is helpful when you get nodes with custom order\n(i.e. alphabetically) and don't want to use recursion to iterate over your nodes.\n\n```php\n$nodes = Category::get()-\u003etoFlatTree();\n```\n\nPrevious example will output:\n\n```\nRoot\nChild 1\nSub child 1\nChild 2\nAnother root\n```\n\n##### Getting a subtree\n\nSometimes you don't need whole tree to be loaded and just some subtree of specific node.\nIt is show in following example:\n\n```php\n$root = Category::descendantsAndSelf($rootId)-\u003etoTree()-\u003efirst();\n```\n\nIn a single query we are getting a root of a subtree and all of its\ndescendants that are accessible via `children` relation.\n\nIf you don't need `$root` node itself, do following instead:\n\n```php\n$tree = Category::descendantsOf($rootId)-\u003etoTree($rootId);\n```\n\n### Deleting nodes\n\nTo delete a node:\n\n```php\n$node-\u003edelete();\n```\n\n**IMPORTANT!** Any descendant that node has will also be deleted!\n\n**IMPORTANT!** Nodes are required to be deleted as models, **don't** try do delete them using a query like so:\n\n```php\nCategory::where('id', '=', $id)-\u003edelete();\n```\n\nThis will break the tree!\n\n`SoftDeletes` trait is supported, also on model level.\n\n### Helper methods\n\nTo check if node is a descendant of other node:\n\n```php\n$bool = $node-\u003eisDescendantOf($parent);\n```\n\nTo check whether the node is a root:\n\n```php\n$bool = $node-\u003eisRoot();\n```\n\nOther checks:\n\n*   `$node-\u003eisChildOf($other);`\n*   `$node-\u003eisAncestorOf($other);`\n*   `$node-\u003eisSiblingOf($other);`\n*   `$node-\u003eisLeaf()`\n\n### Checking consistency\n\nYou can check whether a tree is broken (i.e. has some structural errors):\n\n```php\n$bool = Category::isBroken();\n```\n\nIt is possible to get error statistics:\n\n```php\n$data = Category::countErrors();\n```\n\nIt will return an array with following keys:\n\n-   `oddness` -- the number of nodes that have wrong set of `lft` and `rgt` values\n-   `duplicates` -- the number of nodes that have same `lft` or `rgt` values\n-   `wrong_parent` -- the number of nodes that have invalid `parent_id` value that\n    doesn't correspond to `lft` and `rgt` values\n-   `missing_parent` -- the number of nodes that have `parent_id` pointing to\n    node that doesn't exists\n\n#### Fixing tree\n\nSince v3.1 tree can now be fixed. Using inheritance info from `parent_id` column,\nproper `_lft` and `_rgt` values are set for every node.\n\n```php\nNode::fixTree();\n```\n\n### Scoping\n\nImagine you have `Menu` model and `MenuItems`. There is a one-to-many relationship\nset up between these models. `MenuItem` has `menu_id` attribute for joining models\ntogether. `MenuItem` incorporates nested sets. It is obvious that you would want to\nprocess each tree separately based on `menu_id` attribute. In order to do so, you\nneed to specify this attribute as scope attribute:\n\n```php\nprotected function getScopeAttributes()\n{\n    return [ 'menu_id' ];\n}\n```\n\nBut now, in order to execute some custom query, you need to provide attributes\nthat are used for scoping:\n\n```php\nMenuItem::scoped([ 'menu_id' =\u003e 5 ])-\u003ewithDepth()-\u003eget(); // OK\nMenuItem::descendantsOf($id)-\u003eget(); // WRONG: returns nodes from other scope\nMenuItem::scoped([ 'menu_id' =\u003e 5 ])-\u003efixTree(); // OK\n```\n\nWhen requesting nodes using model instance, scopes applied automatically based\non the attributes of that model:\n\n```php\n$node = MenuItem::findOrFail($id);\n\n$node-\u003esiblings()-\u003ewithDepth()-\u003eget(); // OK\n```\n\nTo get scoped query builder using instance:\n\n```php\n$node-\u003enewScopedQuery();\n```\n\n#### Scoping and eager loading\n\nAlways use scoped query when eager loading:\n\n```php\nMenuItem::scoped([ 'menu_id' =\u003e 5])-\u003ewith('descendants')-\u003efindOrFail($id); // OK\nMenuItem::with('descendants')-\u003efindOrFail($id); // WRONG\n```\n\nRequirements\n------------\n\n- PHP \u003e= 5.4\n- Laravel \u003e= 4.1\n\nIt is highly suggested to use database that supports transactions (like MySql's InnoDb)\nto secure a tree from possible corruption.\n\nInstallation\n------------\n\nTo install the package, in terminal:\n\n```\ncomposer require kalnoy/nestedset\n```\n\n### Setting up from scratch\n\n#### The schema\n\nFor Laravel 5.5 and above users:\n\n```php\nSchema::create('table', function (Blueprint $table) {\n    ...\n    $table-\u003enestedSet();\n});\n\n// To drop columns\nSchema::table('table', function (Blueprint $table) {\n    $table-\u003edropNestedSet();\n});\n```\n\nFor prior Laravel versions:\n\n```php\n...\nuse Kalnoy\\Nestedset\\NestedSet;\n\nSchema::create('table', function (Blueprint $table) {\n    ...\n    NestedSet::columns($table);\n});\n```\n\nTo drop columns:\n\n```php\n...\nuse Kalnoy\\Nestedset\\NestedSet;\n\nSchema::table('table', function (Blueprint $table) {\n    NestedSet::dropColumns($table);\n});\n```\n\n#### The model\n\nYour model should use `Kalnoy\\Nestedset\\NodeTrait` trait to enable nested sets:\n\n```php\nuse Kalnoy\\Nestedset\\NodeTrait;\n\nclass Foo extends Model {\n    use NodeTrait;\n}\n```\n\n### Migrating existing data\n\n#### Migrating from other nested set extension\n\nIf your previous extension used different set of columns, you just need to override\nfollowing methods on your model class:\n\n```php\npublic function getLftName()\n{\n    return 'left';\n}\n\npublic function getRgtName()\n{\n    return 'right';\n}\n\npublic function getParentIdName()\n{\n    return 'parent';\n}\n\n// Specify parent id attribute mutator\npublic function setParentAttribute($value)\n{\n    $this-\u003esetParentIdAttribute($value);\n}\n```\n\n#### Migrating from basic parentage info\n\nIf your tree contains `parent_id` info, you need to add two columns to your schema:\n\n```php\n$table-\u003eunsignedInteger('_lft');\n$table-\u003eunsignedInteger('_rgt');\n```\n\nAfter [setting up your model](#the-model) you only need to fix the tree to fill\n`_lft` and `_rgt` columns:\n\n```php\nMyModel::fixTree();\n```\n\nLicense\n=======\n\nCopyright (c) 2017 Alexander Kalnoy\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","funding_links":[],"categories":["Popular Packages","PHP","Paquetes utiles","Packages"],"sub_categories":["Algorithms/Data Structures"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flazychaser%2Flaravel-nestedset","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flazychaser%2Flaravel-nestedset","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flazychaser%2Flaravel-nestedset/lists"}