laravel/framework — pull request #3770 by crhayes (2014-03-04 01:40:18+00:00)
Title: Fixed issue using whereHas with HasManyThrough Relationship

Originally created this PR towards master branch and was asked to create it for the 4.1 branch.

Reference: https://github.com/laravel/framework/pull/3561