public function index(Request $request)
    {
        $jobs = $this->jobs->getRecent($request->query('starting_at', -1))->map(function ($job) {
            $job->payload = json_decode($job->payload);

            return $job;
        })->values();

        return [
            'jobs' => $jobs,
            'total' => $this->jobs->countRecent(),
        ];
    }
public function index(Request $request)
    {
        $jobs = $this->jobs->getRecent($request->query('starting_at', -1))->map(function ($job) {
            $job->payload = json_decode($job->payload);

            return $job;
        })->values();

        return [
            'jobs' => $jobs,
            'total' => $this->jobs->countRecent(),
        ];
    }
public function index ( Request $ request ) { $ jobs = $ this -> jobs -> getRecent ( $ request -> query ( 'starting_at' , - 1 ) ) -> map ( function ( $ job ) { $ job -> payload = json_decode ( $ job -> payload ) ; return $ job ; } ) -> values ( ) ; return [ 'jobs' => $ jobs , 'total' => $ this -> jobs -> countRecent ( ) , ] ; }
Get all of the recent jobs.

@param  \Illuminate\Http\Request  $request
@return array
Get all of the recent jobs .