public function scopeFutureSchedules($query)
    {
        return $query->whereIn('status', [self::UPCOMING, self::IN_PROGRESS])->where('scheduled_at', '>=', Carbon::now());
    }
public function scopeFutureSchedules($query)
    {
        return $query->whereIn('status', [self::UPCOMING, self::IN_PROGRESS])->where('scheduled_at', '>=', Carbon::now());
    }
public function scopeFutureSchedules ( $ query ) { return $ query -> whereIn ( 'status' , [ self :: UPCOMING , self :: IN_PROGRESS ] ) -> where ( 'scheduled_at' , '>=' , Carbon :: now ( ) ) ; }
Scopes schedules to those in the future.

@param \Illuminate\Database\Eloquent\Builder $query

@return \Illuminate\Database\Eloquent\Builder
Scopes schedules to those in the future .