protected function addDecryptedAttributesToArray(array $attributes)
    {
        if (!$this->encryptedView) {
            foreach ($this->getEncryptable() as $key) {
                if (!array_key_exists($key, $attributes)) {
                    continue;
                }

                if (!empty($attributes[$key])) {
                    $attributes[$key] = Crypt::decrypt($attributes[$key]);
                }
            }
        }

        return $attributes;
    }
protected function addDecryptedAttributesToArray(array $attributes)
    {
        if (!$this->encryptedView) {
            foreach ($this->getEncryptable() as $key) {
                if (!array_key_exists($key, $attributes)) {
                    continue;
                }

                if (!empty($attributes[$key])) {
                    $attributes[$key] = Crypt::decrypt($attributes[$key]);
                }
            }
        }

        return $attributes;
    }
protected function addDecryptedAttributesToArray ( array $ attributes ) { if ( ! $ this -> encryptedView ) { foreach ( $ this -> getEncryptable ( ) as $ key ) { if ( ! array_key_exists ( $ key , $ attributes ) ) { continue ; } if ( ! empty ( $ attributes [ $ key ] ) ) { $ attributes [ $ key ] = Crypt :: decrypt ( $ attributes [ $ key ] ) ; } } } return $ attributes ; }
Decrypt encryptable attributes found in outgoing array

@param array $attributes
@return array
Decrypt encryptable attributes found in outgoing array