public function paginate(Request $request, $tag)
    {
        $jobIds = $this->tags->paginate(
            $tag, $startingAt = $request->query('starting_at', 0),
            $request->query('limit', 25)
        );

        return [
            'jobs' => $this->getJobs($jobIds, $startingAt),
            'total' => $this->tags->count($tag),
        ];
    }
public function paginate(Request $request, $tag)
    {
        $jobIds = $this->tags->paginate(
            $tag, $startingAt = $request->query('starting_at', 0),
            $request->query('limit', 25)
        );

        return [
            'jobs' => $this->getJobs($jobIds, $startingAt),
            'total' => $this->tags->count($tag),
        ];
    }
public function paginate ( Request $ request , $ tag ) { $ jobIds = $ this -> tags -> paginate ( $ tag , $ startingAt = $ request -> query ( 'starting_at' , 0 ) , $ request -> query ( 'limit' , 25 ) ) ; return [ 'jobs' => $ this -> getJobs ( $ jobIds , $ startingAt ) , 'total' => $ this -> tags -> count ( $ tag ) , ] ; }
Paginate the jobs for a given tag.

@param  \Illuminate\Http\Request  $request
@param  string  $tag
@return array
Paginate the jobs for a given tag .