This is a Laravel 4-10 package for working with trees in relational databases. NSM shows good performance when the tree is updated rarely. It is tuned to be fast for getting related nodes. It'is ideally suited for building multi-depth menus or categories for shops. The nested set model is to number the nodes according to a tree traversal, which visits each node twice, assigning numbers in the order of visiting, and at both visits. This leaves two numbers for each node, which are stored as two attributes. Querying becomes inexpensive: hierarchy membership can be tested by comparing these numbers. Updating requires renumbering and is therefore expensive.
Features
- Documentation available
- Insert nodes
- Make a root from existing node
- Build a tree from array
- Get related models from other table
- Check consistency
- Requires Laravel
Categories
FrameworksLicense
MIT LicenseFollow Laravel Nestedset
Other Useful Business Software
Our Free Plans just got better! | Auth0
You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of Laravel Nestedset!