Level 88
What have you tried? What relations do you have so far?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello. I have problem with relationship three table.
We have the tables
users
- id
- username
companies
- id
- name
user_company
- user_id
- company_id
permissions
- id
- name
user_company_permission
- user_id
- company_id
- permission_id
The company has been set when user logged in.
Example:
Step 1: demo account logged in
Step 2: demo account chosen Company A
Step 3: Check permission of demo account in Company A. [Problem]
...........
I need check permission of user in one company.
Please help me. Thank you so much
Please or to participate in this conversation.