public function isEncrypted($attribute)
    {
        if ( ! array_key_exists($attribute, $this->attributes)) {
            return false;
        }

        try {
            $this->decrypt(array_get($this->attributes, $attribute));
        } catch (DecryptException $exception) {
            return false;
        }

        return true;
    }
public function isEncrypted($attribute)
    {
        if ( ! array_key_exists($attribute, $this->attributes)) {
            return false;
        }

        try {
            $this->decrypt(array_get($this->attributes, $attribute));
        } catch (DecryptException $exception) {
            return false;
        }

        return true;
    }
public function isEncrypted ( $ attribute ) { if ( ! array_key_exists ( $ attribute , $ this -> attributes ) ) { return false ; } try { $ this -> decrypt ( array_get ( $ this -> attributes , $ attribute ) ) ; } catch ( DecryptException $ exception ) { return false ; } return true ; }
Returns whether the attribute is encrypted.

@param string $attribute name

@return bool
Returns whether the attribute is encrypted .