public function index()
    {
        $jobs = Job::onTeam()
            ->where('start', '>', Carbon::now()->yesterday())
            ->with(
                'members',
                'member_tags',
                'location'
            )
            ->orderBy('start', 'asc')
            ->paginate(config('app.pagination_default'));
        return fractal($jobs, new JobTransformer())
            ->withResourceName('job')
            ->respond();
    }
public function index()
    {
        $jobs = Job::onTeam()
            ->where('start', '>', Carbon::now()->yesterday())
            ->with(
                'members',
                'member_tags',
                'location'
            )
            ->orderBy('start', 'asc')
            ->paginate(config('app.pagination_default'));
        return fractal($jobs, new JobTransformer())
            ->withResourceName('job')
            ->respond();
    }
public function index ( ) { $ jobs = Job :: onTeam ( ) -> where ( 'start' , '>' , Carbon :: now ( ) -> yesterday ( ) ) -> with ( 'members' , 'member_tags' , 'location' ) -> orderBy ( 'start' , 'asc' ) -> paginate ( config ( 'app.pagination_default' ) ) ; return fractal ( $ jobs , new JobTransformer ( ) ) -> withResourceName ( 'job' ) -> respond ( ) ; }
Fetch a paginated list of Jobs for a selected Team

@return \Illuminate\Http\Response JSON object with pagination header values and data array with a list
of Job objects
Fetch a paginated list of Jobs for a selected Team