public function setHashingAttribute($attribute, $value)
    {
        // Set the value which is presumably plain text
        $this->attributes[$attribute] = $value;

        // Do the hashing if it needs it
        if ( ! empty($value) && ($this->isDirty($attribute) || ! $this->isHashed($attribute))) {
            $this->attributes[$attribute] = $this->hash($value);
        }
    }
public function setHashingAttribute($attribute, $value)
    {
        // Set the value which is presumably plain text
        $this->attributes[$attribute] = $value;

        // Do the hashing if it needs it
        if ( ! empty($value) && ($this->isDirty($attribute) || ! $this->isHashed($attribute))) {
            $this->attributes[$attribute] = $this->hash($value);
        }
    }
public function setHashingAttribute ( $ attribute , $ value ) { // Set the value which is presumably plain text $ this -> attributes [ $ attribute ] = $ value ; // Do the hashing if it needs it if ( ! empty ( $ value ) && ( $ this -> isDirty ( $ attribute ) || ! $ this -> isHashed ( $ attribute ) ) ) { $ this -> attributes [ $ attribute ] = $ this -> hash ( $ value ) ; } }
Set a hashed value for a hashable attribute.

@param string $attribute name
@param string $value     to hash
Set a hashed value for a hashable attribute .