AppComment::whereIn('id', [1, 2, 3])->with(['posts' => function($q) { $q->where('category', 3); }])->get();
AppComment::find([1,2,3])->posts()->where('category', 3)->get()
AppComment::find(1)->posts()->where('category', 3)->get()