/** * Returns a new query builder instance. * * @param string $baseDn * * @return Builder */ public function newQueryBuilder($baseDn = '') { // Create a new Builder. $builder = new Builder($this->connection, $this->newGrammar()); // Set the Base DN on the Builder. $builder->setDn($baseDn); // Return the new Builder instance. return $builder; }
/** * Returns a new query builder instance. * * @return Builder */ public function newQueryBuilder() { // Create a new Builder. $builder = new Builder($this->getAdldap()->getConnection(), $this->newGrammar()); // Get the configuration Base DN. $baseDn = $this->getAdldap()->getConfiguration()->getBaseDn(); // Set the Base DN on the Builder. $builder->setDn($baseDn); // Return the new Builder instance. return $builder; }
/** * Get the RootDSE properties from a domain controller. * * @return AbstractModel|bool */ protected function getRootDse() { return $this->query->setDn(null)->read(true)->whereHas($this->schema->objectClass())->first(); }