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:
27
app/ExportResources/Account/Addressbook.php
Normal file
27
app/ExportResources/Account/Addressbook.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace App\ExportResources\Account;
|
||||
|
||||
use App\ExportResources\ExportResource;
|
||||
|
||||
class Addressbook extends ExportResource
|
||||
{
|
||||
protected $columns = [
|
||||
'uuid',
|
||||
'created_at',
|
||||
'updated_at',
|
||||
];
|
||||
|
||||
protected $properties = [
|
||||
'name',
|
||||
'description',
|
||||
];
|
||||
|
||||
public function data(): ?array
|
||||
{
|
||||
return [
|
||||
'user' => $this->user->uuid,
|
||||
'contacts' => $this->contacts->mapUuid(),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user