Answer by bootstrapguru for How to get the feeds of the user whom you are...
using sub query I am able to get like below. if some one needs other way, check the following code$posts = Post::whereIn('user_id', function($query) use($id) { $query->select('leader_id')...
View ArticleAnswer by user1669496 for How to get the feeds of the user whom you are...
It should be fairly straightforward.$user = User::with('following.feeds')->get();foreach ($user->following as $followedUser) { foreach ($followedUser->feeds as $feed) { }}
View ArticleHow to get the feeds of the user whom you are following
How to get the feeds of the user whom you are following. Right now I'm able to get the id of the user whom you are following but struggling to get the feeds of the following user....
View Article
More Pages to Explore .....