whereHas() public method

Adds a where has clause to the current query.
public whereHas ( string $field ) : Builder
$field string
return Builder
Esempio n. 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();
 }
Esempio n. 2
0
 /**
  * Performs a global 'all' search query on the
  * current connection.
  *
  * @return array|bool
  */
 public function all()
 {
     return $this->query->whereHas(ActiveDirectory::COMMON_NAME)->get();
 }