protected function doDecryptAttribute($key, $value)
    {
        if ($this->shouldEncrypt($key) && $this->isEncrypted($value)) {
            try {
                return $this->decryptedAttribute($value);
            } catch (DecryptException $e) {
            }
        }

        return $value;
    }
protected function doDecryptAttribute($key, $value)
    {
        if ($this->shouldEncrypt($key) && $this->isEncrypted($value)) {
            try {
                return $this->decryptedAttribute($value);
            } catch (DecryptException $e) {
            }
        }

        return $value;
    }
protected function doDecryptAttribute ( $ key , $ value ) { if ( $ this -> shouldEncrypt ( $ key ) && $ this -> isEncrypted ( $ value ) ) { try { return $ this -> decryptedAttribute ( $ value ) ; } catch ( DecryptException $ e ) { } } return $ value ; }
Decrypt an attribute if required.

@param string $key
@param mixed  $value

@return mixed
Decrypt an attribute if required .