public function auditDeletion()
    {
        if ((!isset($this->auditEnabled) || $this->auditEnabled)) {
            $type   = 'deleted';
            $delete = array_merge([
                'old_value'    => $this->getAttributes(),
                'new_value'    => null,
                'related_data' => $this->getRelatedData(),
                'type'         => $type], $this->values());
            return $this->audit($delete);
        }
    }
public function auditDeletion()
    {
        if ((!isset($this->auditEnabled) || $this->auditEnabled)) {
            $type   = 'deleted';
            $delete = array_merge([
                'old_value'    => $this->getAttributes(),
                'new_value'    => null,
                'related_data' => $this->getRelatedData(),
                'type'         => $type], $this->values());
            return $this->audit($delete);
        }
    }
public function auditDeletion ( ) { if ( ( ! isset ( $ this -> auditEnabled ) || $ this -> auditEnabled ) ) { $ type = 'deleted' ; $ delete = array_merge ( [ 'old_value' => $ this -> getAttributes ( ) , 'new_value' => null , 'related_data' => $ this -> getRelatedData ( ) , 'type' => $ type ] , $ this -> values ( ) ) ; return $ this -> audit ( $ delete ) ; } }
Audit deletion.
Audit deletion .