protected function setDynamicEncryptable($attribute, $value)
    {
        // Dynamically set the encryptable attribute
        if ($this->isEncryptable($attribute)) {
            // Encrypt only decrypted values
            if ($this->isDecrypted($attribute)) {
                $this->setEncryptingAttribute($attribute, $value);

                return true;
            }
        }

        return false;
    }
protected function setDynamicEncryptable($attribute, $value)
    {
        // Dynamically set the encryptable attribute
        if ($this->isEncryptable($attribute)) {
            // Encrypt only decrypted values
            if ($this->isDecrypted($attribute)) {
                $this->setEncryptingAttribute($attribute, $value);

                return true;
            }
        }

        return false;
    }
protected function setDynamicEncryptable ( $ attribute , $ value ) { // Dynamically set the encryptable attribute if ( $ this -> isEncryptable ( $ attribute ) ) { // Encrypt only decrypted values if ( $ this -> isDecrypted ( $ attribute ) ) { $ this -> setEncryptingAttribute ( $ attribute , $ value ) ; return true ; } } return false ; }
Set an encryptable attribute dynamically.

@param string $attribute
@param mixed  $value

@return bool
Set an encryptable attribute dynamically .