I have 3 model. Example they are A, B, and C. A is hasMany B, and C hasOne B. Example the relation between A & B is "relationB". so if I retrieve the data from A, I can do "A::with('relationB')". My problem is, how can I access the relation between B & C if I retrieve all datas from A?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire