Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Tree Helper

Tree Helper Laravel Package

pbergman/tree-helper

Laravel package for working with hierarchical tree data in Eloquent models. A trait and query helpers let you fetch parents, children, ancestors, descendants, and siblings, and build nested trees from flat records for categories, menus, and threaded content.

View on GitHub
Deep Wiki
Context7

Tree Helper is a lightweight Laravel/PHP package for working with hierarchical data. It converts flat arrays or collections with parent references into nested tree structures and provides helpers for traversing and flattening them—useful for menus, categories, comments, and org charts.

  • Build nested trees from flat parent-child data
  • Traverse and flatten existing tree structures
  • Simple, framework-friendly API for Laravel apps
  • Ideal for menus, categories, and other hierarchies
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
cgv/localized-resource
noith/settings
kda/laravel-package
kda/filament-dynamic-navigation
bypersoft/signbox
pairus/product-data
fayne/laravel-filament-cms-core