Many requests, is this normal?

Hello, tell me, is it normal when there is so many queries? Is it possible to bundle in a single query ? Screenshot requests:
4d73c722b1ca40f79b9483127b34ba2b.jpg
Well, actually the screen is only part of the queries where they are more.

Many-to-many.

public function tags()
{
 return $this->belongsToMany('App\Tag', 'recipe_tags');
}


@foreach($recipes as $recipe)
 @foreach ($recipe->tags as $tag){{$tag->name }} //requests are due to get tags prescription.

@endforeach
@endforeach
July 2nd 19 at 13:49
2 answers
July 2nd 19 at 13:51
Solution
The fact that obtaining all of the posts going in one request. Actually, in vjushku I give all the posts in vjushke to each recipe get the tags through the relationship... Actually getting the tag and make requests.. - tiana.Kihn commented on July 2nd 19 at 13:54
: read the link - bailee_Stant commented on July 2nd 19 at 13:57
: Hmm, thank you jabbed my nose, I knew well about lazy loading, but that is not out in this case to implement, and then fiddled and everything is OK:) - tiana.Kihn commented on July 2nd 19 at 14:00
: lazy is what you had, but you have to do eager instead of lazy - bailee_Stant commented on July 2nd 19 at 14:03
July 2nd 19 at 13:53
Solution
do ->with

Find more questions by tags Laravel