Here are my tables in DB:
posts: id,group,creator,body,hide
like_user_post_relationships: id,user,post
Model:LikeUserPostRelationship:
user belongsTo(User::class,'user')
post belongsTo(Post::class,'post')
How do I query all LikeUserPostRelationship::Where('user','=',$user->id)->with('post')->get();
And filter out the LikeUserPostRelationship collection with $post->hide = true?
appreciate any help!