where() 공개 메소드

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
리턴 Builder
예제 #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;
 }