2
I have 3 tables,[Users -> Departments -> Posts] where the Users table has many Departments that Departments has many Posts.
My question is: How do I relate the 3 tables to the with() method where (Where()) user this login would be equal to the id of the Users table and get all information from the Departments and Posts table?
OBS(I have the hasMany methods and also by the inverse belongstoMany) More as I apply this logic?
Put your models?
– novic
If you can solve it here?
– novic
Yes. Sorry for the delay in answering Virgilio. Thank you very much for your attention
– Natan Melo