1$users = User::join('posts', 'posts.user_id', '=', 'users.id')
2 ->where('users.status', 'active')
3 ->where('posts.status','active')
4 ->get(['users.*', 'posts.descrption']);
5
1$users = User::join('posts', 'posts.user_id', '=', 'users.id')
2 ->join('comments', 'comments.post_id', '=', 'posts.id')
3 ->get(['users.*', 'posts.descrption']);
4