public function getEncryptedAttribute($attribute)
    {
        $value = array_get($this->attributes, $attribute);

        return $this->isEncrypted($attribute) ? $this->decrypt($value) : $value;
    }
public function getEncryptedAttribute($attribute)
    {
        $value = array_get($this->attributes, $attribute);

        return $this->isEncrypted($attribute) ? $this->decrypt($value) : $value;
    }
public function getEncryptedAttribute ( $ attribute ) { $ value = array_get ( $ this -> attributes , $ attribute ) ; return $ this -> isEncrypted ( $ attribute ) ? $ this -> decrypt ( $ value ) : $ value ; }
Get the decrypted value for an encrypted attribute.

@param string $attribute name

@return string
Get the decrypted value for an encrypted attribute .