protected function shouldEncrypt($key)
    {
        $encrypt = isset($this->encrypts) ? $this->encrypts : $this->encryptable;

        return in_array($key, $encrypt);
    }
protected function shouldEncrypt($key)
    {
        $encrypt = isset($this->encrypts) ? $this->encrypts : $this->encryptable;

        return in_array($key, $encrypt);
    }
protected function shouldEncrypt ( $ key ) { $ encrypt = isset ( $ this -> encrypts ) ? $ this -> encrypts : $ this -> encryptable ; return in_array ( $ key , $ encrypt ) ; }
Determine whether an attribute should be encrypted.

@param string $key

@return bool
Determine whether an attribute should be encrypted .