Laravel bersemangat memuat variabel lulus di withcount dimana kondisi
$user = 1;
Forum::with(['posts' => function($query) use ($user){
$query->withCount(['comments => function($query) use ($user){
$query->where('id_user', $user);
}]);
}])
->get();
SAMER SAEID