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

Baum Laravel Package

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.

View on GitHub
Deep Wiki
Context7

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.

  • O(1)-style queries for ancestors, descendants, siblings, and subtrees
  • Move, insert, and delete nodes with automatic index maintenance
  • Scoped trees for multiple independent hierarchies in one table
  • Depth and root helpers plus ordered sibling retrieval
  • Artisan-friendly rebuild and integrity-check support
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.
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
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