Skip to content

Events ​

All events are in Rembon\LaravelAuditor\Events and are dispatched after the data was persisted successfully.

EventPayloadWhen
EntryRecordedpublic EntryData $entryA complete entry was stored.
ModelChangeRecordedpublic ModelChangeData $changeA model change was stored.
IntegrityViolationDetectedstring $table, int $id, string $reason, ?string $expectedHash, ?string $actualHashauditor:verify found a broken row.
php
Event::listen(IntegrityViolationDetected::class, function ($event) {
    Notification::route('slack', config('services.slack.security'))
        ->notify(new AuditTampered($event->table, $event->id, $event->reason));
});

Released under the MIT License.