update fix deadcode, security

This commit is contained in:
baodev0
2026-09-28 08:26:29 +07:00
parent 3af59bd9c5
commit 82080b5b84
452 changed files with 4857 additions and 26289 deletions
-9
View File
@@ -38,13 +38,4 @@ class ActivityLog extends Model
$model->created_at = now();
});
}
public function causer()
{
return match ($this->causer_type) {
'admin' => $this->belongsTo(User::class, 'causer_id'),
'customer' => $this->belongsTo(Customer::class, 'causer_id'),
default => null,
};
}
}