culturalinfusion/baum
Baum is a nested set implementation for Laravel Eloquent, letting you store and query hierarchical data such as categories, menus, and comments as trees. It offers an ordered tree trait with simple methods to create, move, and traverse nodes efficiently.
Baum is a Laravel package that brings nested set model behavior to your Eloquent models, making it easy to store and query hierarchical data such as categories, menus, and trees. It maintains left/right index columns automatically, so retrieving ancestors or descendants requires a single optimized query instead of recursive lookups.
makeChildOf, makeSiblingOf, and moveTo node operationsHow can I help you explore Laravel packages today?