Skip to content

Commit 99275d7

Browse files
committed
Add data returns on even callbacks
1 parent f4777e5 commit 99275d7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Traits/AuditsTrait.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ protected function auditInsert(array $data)
5252
'summary' => count($data['data']) . ' rows',
5353
];
5454
Services::audits()->add($audit);
55+
56+
return $data;
5557
}
5658

5759
// record successful update events
@@ -64,6 +66,8 @@ protected function auditUpdate(array $data)
6466
'summary' => count($data['data']) . ' rows',
6567
];
6668
Services::audits()->add($audit);
69+
70+
return $data;
6771
}
6872

6973
// record successful delete events
@@ -84,5 +88,7 @@ protected function auditDelete(array $data)
8488
$audit['source_id'] = $id;
8589
$audits->add($audit);
8690
endforeach;
91+
92+
return $data;
8793
}
8894
}

0 commit comments

Comments
 (0)