public function index()
    {
        /** @noinspection PhpUndefinedMethodInspection */
        $locations = Location::with('upcoming_jobs_count')
            ->onTeam()
            ->orderBy('name', 'asc')
            ->paginate(config('app.pagination_default'));
        return fractal($locations, new LocationTransformer())
            ->withResourceName('location')
            ->respond();
    }