[5.8] Add whereHasMorph() by staudenmeir · Pull Request #28928 · laravel/framework
Due to the nature of polymorphism, whereHas() doesn't work with MorphTo relationships (#5429, #18523). As a solution, @timacdonald and I are proposing whereHasMorph() and the corresponding meth...