Merge remote-tracking branch 'origin/staging' into origin/production

This commit is contained in:
Linksehat Staging Server
2024-01-06 11:38:35 +07:00
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');
});