public function setEncryptingAttribute($attribute, $value)
    {
        array_set($this->attributes, $attribute, $this->encrypt($value));
    }
public function setEncryptingAttribute($attribute, $value)
    {
        array_set($this->attributes, $attribute, $this->encrypt($value));
    }
public function setEncryptingAttribute ( $ attribute , $ value ) { array_set ( $ this -> attributes , $ attribute , $ this -> encrypt ( $ value ) ) ; }
Set an encrypted value for an encryptable attribute.

@param string $attribute name
@param string $value     to encrypt
Set an encrypted value for an encryptable attribute .