designmynight/laravel-recursive-collection
A Laravel package that adds recursive helpers to collections for working with nested, tree-like data. Easily flatten, traverse, filter, and transform structures such as menus, categories, and threaded comments using simple chainable methods, keeping your code clean and readable.
Laravel Recursive Collection extends Laravel's native Collection with recursive operations, letting you traverse and transform deeply nested arrays and collections without writing repetitive loops. It's a drop-in replacement that preserves the familiar fluent API while adding awareness of child items.
map, filter, and each across nested levelsIlluminate\Support\Collection methodsHow can I help you explore Laravel packages today?