updated streamline-setup v2

This commit is contained in:
2025-01-15 08:53:49 -08:00
committed by alec.turner
parent a2ce9248f0
commit 4b569f81b0
20228 changed files with 2932048 additions and 63204 deletions
@@ -77,7 +77,7 @@ trait Audit
// Metadata
$this->data = [
'audit_id' => $this->id,
'audit_id' => $this->getKey(),
'audit_event' => $this->event,
'audit_tags' => $this->tags,
'audit_created_at' => $this->serializeDate($this->{$this->getCreatedAtColumn()}),
@@ -102,11 +102,11 @@ trait Audit
$this->metadata = array_keys($this->data);
// Modified Auditable attributes
foreach ($this->new_values as $key => $value) {
foreach ($this->new_values ?? [] as $key => $value) {
$this->data['new_' . $key] = $value;
}
foreach ($this->old_values as $key => $value) {
foreach ($this->old_values ?? [] as $key => $value) {
$this->data['old_' . $key] = $value;
}