$order = Post::with('comments')->whereHas('comments',function ($q){
$q->where('user_id',Auth::id());
})->get();
public function comments() {
return $this->belongsTo(Comment::class,'id','post_id');
}
$order = Post::with(['comments' => function ($q){
$q->where('user_id',Auth::id());
}])->whereHas('comments',function ($q){
$q->where('user_id',Auth::id());
})->get();