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.
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.
How can I help you explore Laravel packages today?