Hi, How can I implement recursive relashionship in my code between employee and a manager? I have one table called employee with attribute manager_id but i don't know what I should add in my employee model and migation class ? An example Would be really helpfull and thank you in advance.

This page summarizes the projects mentioned and recommended in the original post on /r/laravel

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • laravel-adjacency-list

    Recursive Laravel Eloquent relationships with CTEs

  • I used this package recently and I think it would work great for you scenario https://github.com/staudenmeir/laravel-adjacency-list

  • laravel-nestedset

    Effective tree structures in Laravel 4-8

  • I would go with a nested set model and use package like https://github.com/lazychaser/laravel-nestedset

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts