public function compileInsertGetId(Builder $query, $values, $sequence) {
    $this->beforePut($values);
    $this->remapWheres($query);
    $sql = $this->grammar->compileInsertGetId($query, $values, $sequence);

    if($this->replace_into) {
      $sql = preg_replace('/^insert into/i', 'replace into', $sql);
      $this->replace_into = false;
    }

    return $sql;
  }
public function compileInsertGetId(Builder $query, $values, $sequence) {
    $this->beforePut($values);
    $this->remapWheres($query);
    $sql = $this->grammar->compileInsertGetId($query, $values, $sequence);

    if($this->replace_into) {
      $sql = preg_replace('/^insert into/i', 'replace into', $sql);
      $this->replace_into = false;
    }

    return $sql;
  }
public function compileInsertGetId ( Builder $ query , $ values , $ sequence ) { $ this -> beforePut ( $ values ) ; $ this -> remapWheres ( $ query ) ; $ sql = $ this -> grammar -> compileInsertGetId ( $ query , $ values , $ sequence ) ; if ( $ this -> replace_into ) { $ sql = preg_replace ( '/^insert into/i' , 'replace into' , $ sql ) ; $ this -> replace_into = false ; } return $ sql ; }
Compile an insert and get ID statement into SQL

@param  Builder  $query
@param  mixed[]  $values
@param  string   $sequence

@return  string
Compile an insert and get ID statement into SQL