mardi 8 février 2022

Laravel get Users->Projects with its ProjectTypes relation, where Users is connected by ManyToMany with ProjectTypes

How can i get Users->Projects with its ProjectTypes relation, where Users is connected by ManyToMany with ProjectTypes.

I have this tables:

User
- id 
- name

Project
- id
- name

ProjectType
- id
- name

project_type_user
- id
- user_id
- project_type_id

project_user
- id
- user_id
- project_id


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

Aucun commentaire:

Enregistrer un commentaire