public function orWhere(array $where, $type = 'AND') { if (!empty($where)) { $whereClause = implode(' ' . $type . ' ', $this->parseWhereToSQLFragments($where)); $this->builder()->orWhere($whereClause); } return $this; }