protected function isProtectedAttribute($key, $value)
    {
        return (in_array($key, $this->getProtectable()) && ($value === $this->protectionMask));
    }
protected function isProtectedAttribute($key, $value)
    {
        return (in_array($key, $this->getProtectable()) && ($value === $this->protectionMask));
    }
protected function isProtectedAttribute ( $ key , $ value ) { return ( in_array ( $ key , $ this -> getProtectable ( ) ) && ( $ value === $ this -> protectionMask ) ) ; }
Check if the attribute coming from client is set to mask. If so, skip writing to database.

@param string $key   Attribute name
@param mixed  $value Value of the attribute $key
@return bool
Check if the attribute coming from client is set to mask . If so skip writing to database .