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

Project Samples

Project Activity

See All Activity >

Categories

Frameworks

License

MIT License

Follow Laravel Nestedset

Laravel Nestedset Web Site

Other Useful Business Software
Enterprise-grade ITSM, for every business Icon
Enterprise-grade ITSM, for every business

Give your IT, operations, and business teams the ability to deliver exceptional services—without the complexity.

Freshservice is an intuitive, AI-powered platform that helps IT, operations, and business teams deliver exceptional service without the usual complexity. Automate repetitive tasks, resolve issues faster, and provide seamless support across the organization. From managing incidents and assets to driving smarter decisions, Freshservice makes it easy to stay efficient and scale with confidence.
Try it Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Laravel Nestedset!

Additional Project Details

Programming Language

PHP

Related Categories

PHP Frameworks

Registered

2024-04-04