glassfrogbooks/baum
Baum adds nested set trees to Laravel's Eloquent ORM, so you can store and query hierarchical data like categories, menus, and threaded comments. Get efficient ancestors, descendants, siblings, and depth queries plus simple migrations and tree manipulation helpers.
glassfrogbooks/baum is a Laravel package that brings nested set tree behavior to your Eloquent models. It stores hierarchical data using left/right index columns, so retrieving entire subtrees, ancestors, and descendants stays fast without recursive queries—ideal for categories, menus, org charts, and comment threads.
Models gain a rich API for moving nodes, inserting siblings, rebuilding trees, and querying relatives, all while preserving referential integrity.
How can I help you explore Laravel packages today?