protected function paginateByTag(Request $request, $tag)
    {
        $jobIds = $this->tags->paginate(
            'failed:'.$tag, $request->query('starting_at', -1) + 1, 50
        );

        $startingAt = $request->query('starting_at', 0);

        return $this->jobs->getJobs($jobIds, $startingAt)->map(function ($job) {
            return $this->decode($job);
        });
    }
protected function paginateByTag(Request $request, $tag)
    {
        $jobIds = $this->tags->paginate(
            'failed:'.$tag, $request->query('starting_at', -1) + 1, 50
        );

        $startingAt = $request->query('starting_at', 0);

        return $this->jobs->getJobs($jobIds, $startingAt)->map(function ($job) {
            return $this->decode($job);
        });
    }
protected function paginateByTag ( Request $ request , $ tag ) { $ jobIds = $ this -> tags -> paginate ( 'failed:' . $ tag , $ request -> query ( 'starting_at' , - 1 ) + 1 , 50 ) ; $ startingAt = $ request -> query ( 'starting_at' , 0 ) ; return $ this -> jobs -> getJobs ( $ jobIds , $ startingAt ) -> map ( function ( $ job ) { return $ this -> decode ( $ job ) ; } ) ; }
Paginate the failed jobs for the request and tag.

@param  \Illuminate\Http\Request  $request
@param  string  $tag
@return \Illuminate\Support\Collection
Paginate the failed jobs for the request and tag .