In today's video, we learn how loading related tables works and the difference between using eager and lazy loading.
Lazy loading means that when we retrieve records from the product table, relationships with the fetch type lazy will only be retrieved when requested.
Eager loading means that when we retrieve data from the product table, data from the Item table will be retrieved together in a single query.
My Instagram:
/ rodrigofreitas.dev