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?
from Newest questions tagged laravel-5 - Stack Overflow http://bit.ly/2Rlxwj2
via IFTTT
Aucun commentaire:
Enregistrer un commentaire