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
Laravel Recursive Relationships

Laravel Recursive Relationships Laravel Package

paxha/laravel-recursive-relationships

Laravel package for defining and working with recursive relationships in Eloquent models—query parent-child hierarchies, trees, and nested structures with ease. (Approx 160 chars - need closer to 300) Let me expand to ~300 chars: Laravel package for defining and querying recursive relationships in E...

View on GitHub
Deep Wiki
Context7

paxha/laravel-recursive-relationships adds self-referencing, recursive relationships to your Laravel Eloquent models. Define a parent/child hierarchy once and traverse it in either direction — ideal for category trees, comment threads, org charts, and any nested data set.

  • Recursive accessors for ancestors and descendants at any depth
  • Simple trait-based integration with existing Eloquent models
  • Works with belongsTo/hasMany parent-child definitions
  • Query-friendly relationships for eager loading trees
class Category extends Model {
    use RecursiveRelationships;
}
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.
uni-method/symfony-lib
tacticmedia/scim-server-bundle
neika-ai/symfony-bundle
mattleads/agent-publishing-bundle
glavweb/framework-bundle
glavweb/extra-bundle
glavweb/api-bundle
glavweb/admin-bundle
adachsoft/api-version-bundle
elsayed85/laravel-api-exceptions
ouhssini/laravel-demo-mode
daworks/ncloud-outbound-mailer-driver
gp247/cms
ignibyte/aic-gates
nexa-merchant/blog
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
shitoudev/permissionmanager