laravel-adjacency-list

Installation
SKILL.md

Laravel Adjacency List

When to use this skill

Use this skill when working with staudenmeir/laravel-adjacency-list in a Laravel 11+ application:

  • Building hierarchical/tree data structures (categories, menus, org charts, nested comments)
  • Traversing ancestors, descendants, siblings, or bloodlines recursively
  • Working with directed graphs with multiple parents per node (BOM, family trees)
  • Querying tree depth, paths, or ordering (breadth-first, depth-first)
  • Generating nested tree structures from flat query results
  • Combining recursive relationships with other Eloquent relationships
  • Filtering models by position in a tree (root, leaf, has children, has parent)

Installation

composer require staudenmeir/laravel-adjacency-list:"^1.0"
Related skills
Installs
6
First Seen
Feb 28, 2026