public function orWhereRegex($column, $value) { if (!$value instanceof MongoRegex) { $value = new MongoRegex($value); } return $this->where($column, $value, '$or'); }