Files
CRM/app/ExportResources/Instance/AuditLog.php
Kroonk a213a1dba0
Some checks failed
Build & Push Monica Image to Gitea Registry / build-and-push (push) Failing after 9s
refactor: replace custom CRM with Monica fork
2026-05-22 16:19:55 +02:00

36 lines
784 B
PHP

<?php
namespace App\ExportResources\Instance;
use App\ExportResources\ExportResource;
class AuditLog extends ExportResource
{
protected $columns = [
'created_at',
'updated_at',
];
protected $properties = [
'author_name',
'action',
'objects',
'audited_at',
'should_appear_on_dashboard',
];
public function data(): ?array
{
return [
'properties' => [
'author' => $this->when($this->author !== null, function () {
return $this->author->uuid;
}),
'contact' => $this->when($this->contact !== null, function () {
return $this->contact->uuid;
}),
],
];
}
}