refactor: replace custom CRM with Monica fork
Some checks failed
Build & Push Monica Image to Gitea Registry / build-and-push (push) Failing after 9s
Some checks failed
Build & Push Monica Image to Gitea Registry / build-and-push (push) Failing after 9s
This commit is contained in:
35
app/ExportResources/Instance/AuditLog.php
Normal file
35
app/ExportResources/Instance/AuditLog.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?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;
|
||||
}),
|
||||
],
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user