public static function popularTags(int $limit = null, int $minCount = 1): array
    {
        /** @var Collection $tags */
        $tags = app(TagService::class)->getPopularTags($limit, static::class, $minCount);

        return $tags->pluck('taggable_count', 'name')->all();
    }
public static function popularTags(int $limit = null, int $minCount = 1): array
    {
        /** @var Collection $tags */
        $tags = app(TagService::class)->getPopularTags($limit, static::class, $minCount);

        return $tags->pluck('taggable_count', 'name')->all();
    }
public static function popularTags ( int $ limit = null , int $ minCount = 1 ) : array { /** @var Collection $tags */ $ tags = app ( TagService :: class ) -> getPopularTags ( $ limit , static :: class , $ minCount ) ; return $ tags -> pluck ( 'taggable_count' , 'name' ) -> all ( ) ; }
Get the most popular tags for the called class.

@param int $limit
@param int $minCount

@return array
Get the most popular tags for the called class .