N
N
naneri2015-07-15 13:04:58
Laravel
naneri, 2015-07-15 13:04:58

Can Eager Loading be used to load Many-to-One relationships?

I have tables Blogs and BlogTypes, it turns out that one BlogType has many Blogs.
Can I when loading 1 blog through

Blog::findOrFail($id)

use Eager Loading to load its BlogType ?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question