In the documentation of Eloquent it is said that I can pass the keys of a desired relationship to hasManyThrough.
Lets say I have Models named Count
$user_id = 3; $country = Country::find($country_id); $country->posts()->where('users.id', '=', $user_id)->get();