whereHas() 공개 메소드

Adds a where has clause to the current query.
public whereHas ( string $field ) : Builder
$field string
리턴 Builder
예제 #1
0
 /**
  * Performs a global 'all' search query on the current
  * connection by performing a search for all entries
  * that contain a common name attribute.
  *
  * @return array|bool
  */
 public function all()
 {
     return $this->query->whereHas($this->schema->commonName())->get();
 }
예제 #2
0
파일: Factory.php 프로젝트: strebl/Adldap2
 /**
  * Performs a global 'all' search query on the
  * current connection.
  *
  * @return array|bool
  */
 public function all()
 {
     return $this->query->whereHas(ActiveDirectory::COMMON_NAME)->get();
 }