public function compileInsert(Builder $query) {
		$table = $this->wrap($query->from[0]);
	
		$columns = $this->columnize(array_keys(reset($query->inserts)));
		
		// We need to build a list of parameter place-holders of values that are bound
		// to the query. Each insert should have the exact same amount of parameter
		// bindings so we can just go off the first list of values in this array.
		$parameters = $this->parameterize(reset($query->inserts));
		
		$value = array_fill(0, count($query->inserts), "($parameters)");
	
		$parameters = implode(', ', $value);
	
		return "insert into $table ($columns) values $parameters";
	}
public function compileInsert(Builder $query) {
		$table = $this->wrap($query->from[0]);
	
		$columns = $this->columnize(array_keys(reset($query->inserts)));
		
		// We need to build a list of parameter place-holders of values that are bound
		// to the query. Each insert should have the exact same amount of parameter
		// bindings so we can just go off the first list of values in this array.
		$parameters = $this->parameterize(reset($query->inserts));
		
		$value = array_fill(0, count($query->inserts), "($parameters)");
	
		$parameters = implode(', ', $value);
	
		return "insert into $table ($columns) values $parameters";
	}
public function compileInsert ( Builder $ query ) { $ table = $ this -> wrap ( $ query -> from [ 0 ] ) ; $ columns = $ this -> columnize ( array_keys ( reset ( $ query -> inserts ) ) ) ; // We need to build a list of parameter place-holders of values that are bound // to the query. Each insert should have the exact same amount of parameter // bindings so we can just go off the first list of values in this array. $ parameters = $ this -> parameterize ( reset ( $ query -> inserts ) ) ; $ value = array_fill ( 0 , count ( $ query -> inserts ) , "($parameters)" ) ; $ parameters = implode ( ', ' , $ value ) ; return "insert into $table ($columns) values $parameters" ; }
Compile an insert statement into SQL.

@param  Builder $query
@param  array  $values
@return string
Compile an insert statement into SQL .