3
I have a user table that makes relationship with profile belongsTo, and the profile relates to area items belongsToMany , and area items makes relationship with area belongsTo, he is bringing my item from the area, but I would like to bring tbm to my area in the data, someone would know me how to do this ?
I’m making the call as follows
Auth::user()->profiles->areasItens->toArray();
only keep calling the relationship, ->area->areaItens->toArray since area contains items, so area one to n
– juniorb2ss