Answer the question
In order to leave comments, you need to log in
Lots of requests, is that normal?
Hello, tell me, is it normal when there are so many requests? Whether it is possible somehow in a pack one request? Screenshot of requests:
Well, actually on the screen this is just a part of the requests, there are much more of them.
Many-to-many relationship.
public function tags()
{
return $this->belongsToMany('App\Tag', 'recipe_tags');
}
@foreach($recipes as $recipe)
@foreach ($recipe->tags as $tag){{$tag->name }} //запросы идут из-за получения тегов рецепта.
@endforeach
@endforeach
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question