Closed ortix closed 9 years ago
Is this possible? Because if I have a list of 1000 tagable entities, with each 10 tags, you can imagine that the amount of queuries become huge when getting them out of a forloop
Yeah, just do something like
$articles = Article::with('tagged')->get(); ... foreach($article->tagged() as $tagged) { echo $tagged->tag_name; }
Is this possible? Because if I have a list of 1000 tagable entities, with each 10 tags, you can imagine that the amount of queuries become huge when getting them out of a forloop