whereColumn() public method

Add a "where" clause comparing two columns to the query.
public whereColumn ( string | array $first, string | null $operator = null, string | null $second = null, string | null $boolean = 'and' ) : Builder | static
$first string | array
$operator string | null
$second string | null
$boolean string | null
return Builder | static
Example #1
0
 /**
  * Add a "where" clause comparing two columns to the query.
  *
  * @param string|array $first
  * @param string|null $operator
  * @param string|null $second
  * @param string|null $boolean
  * @return \Illuminate\Database\Query\Builder|static 
  * @static 
  */
 public static function whereColumn($first, $operator = null, $second = null, $boolean = 'and')
 {
     return \Illuminate\Database\Query\Builder::whereColumn($first, $operator, $second, $boolean);
 }