public function getArticlesByTagDesc(string $tag, int $size = null) : Collection
    {
        $size = $size ?? $this->articles->count();
        $articles = $this->articles;
        return $this->tag_list->get($tag)->reverse()->map(function ($item) use ($articles) {
            return $articles->get($item);
        })->values()->take($size);
    }
public function getArticlesByTagDesc(string $tag, int $size = null) : Collection
    {
        $size = $size ?? $this->articles->count();
        $articles = $this->articles;
        return $this->tag_list->get($tag)->reverse()->map(function ($item) use ($articles) {
            return $articles->get($item);
        })->values()->take($size);
    }
public function getArticlesByTagDesc ( string $ tag , int $ size = null ) : Collection { $ size = $ size ?? $ this -> articles -> count ( ) ; $ articles = $ this -> articles ; return $ this -> tag_list -> get ( $ tag ) -> reverse ( ) -> map ( function ( $ item ) use ( $ articles ) { return $ articles -> get ( $ item ) ; } ) -> values ( ) -> take ( $ size ) ; }
get articles by tag
@param  string     $tag  tag name
@param  integer    $size articles size
@return Collection       article collection
get articles by tag