Skip to content

Commit

Permalink
fix: RecordCustomAudit listener
Browse files Browse the repository at this point in the history
  • Loading branch information
Pr3d4dor committed Aug 19, 2024
1 parent 9357577 commit 57eb181
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Listeners/RecordCustomAudit.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@

namespace OwenIt\Auditing\Listeners;

use OwenIt\Auditing\Events\AuditCustom;
use OwenIt\Auditing\Facades\Auditor;

class RecordCustomAudit
{
public function handle(\OwenIt\Auditing\Contracts\Auditable $model)
public function handle(AuditCustom $event)
{
Auditor::execute($model);
Auditor::execute($event->model);
}
}

0 comments on commit 57eb181

Please sign in to comment.