Illuminate\Database\Query\Builder::mergeWheres PHP Method

mergeWheres() public method

Merge an array of where clauses and bindings.
public mergeWheres ( array $wheres, array $bindings ) : void
$wheres array
$bindings array
return void
    public function mergeWheres($wheres, $bindings)
    {
        $this->wheres = array_merge((array) $this->wheres, (array) $wheres);
        $this->bindings['where'] = array_values(array_merge($this->bindings['where'], (array) $bindings));
    }

Usage Example

Example #1
0
 /**
  * Merge an array of where clauses and bindings.
  *
  * @param array $wheres
  * @param array $bindings
  * @return void 
  * @static 
  */
 public static function mergeWheres($wheres, $bindings)
 {
     \Illuminate\Database\Query\Builder::mergeWheres($wheres, $bindings);
 }