OwenIt\Auditing\Auditable::isAttributeAuditable PHP Method

isAttributeAuditable() private method

Determine whether a attribute is auditable for audit manipulation.
private isAttributeAuditable ( $attribute ) : boolean
$attribute
return boolean
    private function isAttributeAuditable($attribute)
    {
        // Checks if the field is in the collection of auditable
        if (isset($this->doKeep) && in_array($attribute, $this->doKeep)) {
            return true;
        }
        // Checks if the field is in the collection of non-auditable
        if (isset($this->dontKeep) && in_array($attribute, $this->dontKeep)) {
            return false;
        }
        // Checks whether the auditable list is clean
        return empty($this->doKeep);
    }