public function paginate($tag, $startingAt = 0, $limit = 25)
    {
        $tags = (array) $this->connection()->zrevrange(
            $tag, $startingAt, $startingAt + $limit - 1
        );

        return collect($tags)->values()->mapWithKeys(function ($tag, $index) use ($startingAt) {
            return [$index + $startingAt => $tag];
        })->all();
    }
public function paginate($tag, $startingAt = 0, $limit = 25)
    {
        $tags = (array) $this->connection()->zrevrange(
            $tag, $startingAt, $startingAt + $limit - 1
        );

        return collect($tags)->values()->mapWithKeys(function ($tag, $index) use ($startingAt) {
            return [$index + $startingAt => $tag];
        })->all();
    }
public function paginate ( $ tag , $ startingAt = 0 , $ limit = 25 ) { $ tags = ( array ) $ this -> connection ( ) -> zrevrange ( $ tag , $ startingAt , $ startingAt + $ limit - 1 ) ; return collect ( $ tags ) -> values ( ) -> mapWithKeys ( function ( $ tag , $ index ) use ( $ startingAt ) { return [ $ index + $ startingAt => $ tag ] ; } ) -> all ( ) ; }
Paginate the job IDs for a given tag.

@param  string  $tag
@param  int  $startingAt
@param  int  $limit
@return array
Paginate the job IDs for a given tag .