fixing recode mode 2, history member plan dan register

This commit is contained in:
2024-01-06 11:24:11 +07:00
parent c899c40ef1
commit eb1f215bdb
4 changed files with 52 additions and 32 deletions

View File

@@ -12,6 +12,7 @@ use App\Models\CorporateService;
use App\Models\CorporatePlan;
use App\Models\CorporateBenefit;
use App\Models\Member;
use App\Models\MemberPlan;
use App\Models\CorporateHospital;
use App\Models\ExclusionRules;
use App\Models\ExclusionImport;
@@ -70,6 +71,11 @@ class AppServiceProvider extends ServiceProvider
$this->logAuditTrail($model, 'updated');
});
MemberPlan::updated(function ($model) {
$this->logAuditTrail($model, 'updated');
});
Member::deleted(function ($model) {
$this->logAuditTrail($model, 'deleted');
});