samedi 23 mai 2020

Retrieve data on many tables - Laravel

Good morning, Here is my model :

A Chretien can have many Poste. A Poste can belog to many Chretien. A Poste belongs to many Departement. A Departement has many Poste.

CHRETIEN------------------------POSTE---------------------------DEPARTEMENT enter image description here 0..* 0..* 1..** 0.. *

How can I retrieve the model like this?

                         John DOE
        ---------------------------------------
        |**Postes**       | **Departements**  |
        ---------------------------------------
        |Pianist          | Musical Group     |
        ---------------------------------------
        | Secretary Curch | council           |
        ---------------------------------------
        |Wedding Planer   | Organizatin Comite|


from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2XCaSrV
via IFTTT

Aucun commentaire:

Enregistrer un commentaire