lazychaser/laravel-nestedset

Effective tree structures in Laravel 4-8

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 23 minutes ago
Added to GitGenius on September 18th, 2026
Created on September 28th, 2013
Open Issues & Pull Requests: 218 (+0)
GitHub issues: Enabled
Number of forks: 479
Total Stargazers: 3,803 (+0)
Total Subscribers: 94 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 11.0 hours
Mean response time: 154.8 days
90th percentile: 438.3 days
Tracked items: 41

Most active contributors

Sign in to see contributor activity.

How this project is maintained

100% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Three people close 75% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 33
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 1,182 days
Stale 30+ days: 33
Stale 90+ days: 33

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

No label distribution available yet.

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

Laravel Nested Set is a Laravel package that implements the nested set model for managing hierarchical tree structures in relational databases.

The nested set model solves the problem of efficiently querying and manipulating tree-structured data without recursive queries. Rather than storing parent-child relationships directly, the model assigns each node left and right boundary values that encode the tree hierarchy. This approach allows complex tree operations—retrieving all descendants, finding ancestors, moving subtrees—to execute in single database queries. The package provides an Eloquent trait that handles the nested set logic transparently, letting developers work with tree structures using familiar Laravel patterns.

The tool suits Laravel applications that need to manage hierarchical data such as category trees, organizational charts, menu structures, or comment threads. It works best when tree operations are frequent and performance matters, since the nested set model trades write complexity for read efficiency. Projects with deeply nested structures or those requiring rapid ancestor and descendant queries benefit most. The package integrates directly into Eloquent models, making it a natural fit for Laravel applications that already use the ORM.

The project shows consistent maintenance with regular updates addressing compatibility across Laravel versions. The codebase receives ongoing refinement with improvements to core functionality and bug fixes applied steadily. Development activity demonstrates responsiveness to issues and pull requests, indicating active engagement with the user base. The package maintains backward compatibility while adapting to changes in the Laravel framework itself.