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

CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  1. 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

  2. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  3. 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

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

  • Made a package to performantly convert a flat collection of hierarchical data to a nested collection for things like Org Charts. Feedback appreciated.

    2 projects | /r/laravel | 10 Sep 2022
  • How to best load a large DB tree structure into frontend

    2 projects | /r/laravel | 2 Aug 2022
  • How to use an Order column in a Pivot Table

    1 project | /r/laravel | 14 Apr 2022
  • Developing GetCandy 2

    1 project | dev.to | 19 Jan 2022
  • How to load nested comments efficiently with pagination via MySQL in laravel?

    5 projects | /r/laravel | 24 Oct 2021

Did you know that PHP is
the 14th most popular programming language
based on number of references?