protected function buildCondition(ConditionGroupContract $group, $key, $value)
    {

        if (is_array($value)) {
            return $group->where($key, 'in', $value);
        }

        if (is_numeric($value)) {
            return $group->where($key, '=', $value);
        }

        if (Type::isStringLike($value)) {
            return $group->where($key, 'like', "$value");
        }

        return $group->where($key, $value);

    }
protected function buildCondition(ConditionGroupContract $group, $key, $value)
    {

        if (is_array($value)) {
            return $group->where($key, 'in', $value);
        }

        if (is_numeric($value)) {
            return $group->where($key, '=', $value);
        }

        if (Type::isStringLike($value)) {
            return $group->where($key, 'like', "$value");
        }

        return $group->where($key, $value);

    }
protected function buildCondition ( ConditionGroupContract $ group , $ key , $ value ) { if ( is_array ( $ value ) ) { return $ group -> where ( $ key , 'in' , $ value ) ; } if ( is_numeric ( $ value ) ) { return $ group -> where ( $ key , '=' , $ value ) ; } if ( Type :: isStringLike ( $ value ) ) { return $ group -> where ( $ key , 'like' , "$value" ) ; } return $ group -> where ( $ key , $ value ) ; }
Add a single condition, add it to the group and return the new group.

@param ConditionGroupContract $group
@param string                 $key
@param mixed                  $value

@return ConditionGroupContract|Queryable
Add a single condition add it to the group and return the new group .