Laravel eager loading with nested relationship
问题 I know this question has been asked but my situation is different. I have Post model with relationship to Comment model defined: /*Post Model*/ public function comments(){ return $this->hasMany('comment'); } and Comment model which each comment belong to one user : / comment model / public function user(){ return $this->belongto('user'); } now I want to query all post and eager load comments (of each post) along with user information who post the comment. anyway to make it work please ? thank