where() public method

Adds a where clause to the current query.
public where ( string | array $field, string $operator = null, string $value = null, string $type = 'and' ) : Builder
$field string | array
$operator string
$value string
$type string
return Builder
Exemplo n.º 1
0
 /**
  * Adds a where clause to the current query.
  *
  * @param string $field
  * @param string $operator
  * @param string $value
  *
  * @return $this
  */
 public function where($field, $operator = null, $value = null)
 {
     $this->query->where($field, $operator, $value);
     return $this;
 }