Use eager loading, you won't face this issue. It's just polymorphic relations are not fully reliable, there are more of such issues when working with them unfortunately..
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community