protected function getDynamicEncrypted($attribute)
    {
        // Dynamically get the encrypted attributes
        if ($this->isEncryptable($attribute)) {
            // Decrypt only encrypted values
            if ($this->isEncrypted($attribute)) {
                return $this->getEncryptedAttribute($attribute);
            }
        }
    }
protected function getDynamicEncrypted($attribute)
    {
        // Dynamically get the encrypted attributes
        if ($this->isEncryptable($attribute)) {
            // Decrypt only encrypted values
            if ($this->isEncrypted($attribute)) {
                return $this->getEncryptedAttribute($attribute);
            }
        }
    }
protected function getDynamicEncrypted ( $ attribute ) { // Dynamically get the encrypted attributes if ( $ this -> isEncryptable ( $ attribute ) ) { // Decrypt only encrypted values if ( $ this -> isEncrypted ( $ attribute ) ) { return $ this -> getEncryptedAttribute ( $ attribute ) ; } } }
Get an encrypted attribute dynamically.

@param string $attribute

@return mixed
Get an encrypted attribute dynamically .