Eager Loading One-to-Many Relationship in Laravel Returns Empty Collection Despite Data Being Present
I’m facing an issue with eager loading in Laravel where a one-to-many relationship returns an empty collection, even though there is data present in the database. The same relationship works correctly when accessed using lazy loading.