/** * Sets the model's common name. * * @param string $name * * @return $this */ public function setCommonName($name) { return $this->setFirstAttribute($this->schema->commonName(), $name); }
/** * Performs a global 'all' search query on the current * connection by performing a search for all entries * that contain a common name attribute. * * @return \Illuminate\Support\Collection|array */ public function all() { return $this->query->whereHas($this->schema->commonName())->get(); }
/** * Assembles the common names in the distinguished name. * * @return string */ public function assembleCns() { return $this->assembleRdns($this->schema->commonName(), $this->commonNames); }