protected function indexJobs($jobs, $indexFrom)
    {
        return $jobs->map(function ($job) use (&$indexFrom) {
            $job = (object) array_combine($this->keys, $job);

            $job->index = $indexFrom;

            $indexFrom++;

            return $job;
        });
    }
protected function indexJobs($jobs, $indexFrom)
    {
        return $jobs->map(function ($job) use (&$indexFrom) {
            $job = (object) array_combine($this->keys, $job);

            $job->index = $indexFrom;

            $indexFrom++;

            return $job;
        });
    }
protected function indexJobs ( $ jobs , $ indexFrom ) { return $ jobs -> map ( function ( $ job ) use ( & $ indexFrom ) { $ job = ( object ) array_combine ( $ this -> keys , $ job ) ; $ job -> index = $ indexFrom ; $ indexFrom ++ ; return $ job ; } ) ; }
Index the given jobs from the given index.

@param  \Illuminate\Support\Collection  $jobs
@param  int  $indexFrom
@return \Illuminate\Support\Collection
Index the given jobs from the given index .