src/Traits/Hashable.php
public function hasUniqueHash()
    {
        $hash = $this->hashWorkingRecord->{$this->hashDbField} ?: $this->encrypt();

        $list = $this->hashWorkingRecord->get()->filter($this->hashDbField, $hash);

        if($this->hashWorkingRecord->ID) {
            $list = $list->exclude('ID', $this->hashWorkingRecord->ID);
        }

        return !($list->exists());
    }
public function hasUniqueHash()
    {
        $hash = $this->hashWorkingRecord->{$this->hashDbField} ?: $this->encrypt();

        $list = $this->hashWorkingRecord->get()->filter($this->hashDbField, $hash);

        if($this->hashWorkingRecord->ID) {
            $list = $list->exclude('ID', $this->hashWorkingRecord->ID);
        }

        return !($list->exists());
    }
public function hasUniqueHash ( ) { $ hash = $ this -> hashWorkingRecord -> { $ this -> hashDbField } ? : $ this -> encrypt ( ) ; $ list = $ this -> hashWorkingRecord -> get ( ) -> filter ( $ this -> hashDbField , $ hash ) ; if ( $ this -> hashWorkingRecord -> ID ) { $ list = $ list -> exclude ( 'ID' , $ this -> hashWorkingRecord -> ID ) ; } return ! ( $ list -> exists ( ) ) ; }
Check if the hash for this object is unique

@return boolean
Check if the hash for this object is unique