protected function boardListTags() { $tags = BoardTag::distinct('tag')->with(['boards', 'boards.stats', 'boards.stats.uniques'])->limit(50)->get(); $tagWeight = []; foreach ($tags as $tag) { $tagWeight[$tag->tag] = $tag->getWeight(3); if ($tag->getWeight() > 0) { } } return $tagWeight; }