- append more informations from api

This commit is contained in:
2023-07-04 01:12:05 +02:00
parent ac90d45519
commit 99f0bafe93
8 changed files with 78 additions and 3 deletions

View File

@@ -19,6 +19,14 @@ class CVResource extends JsonResource
'formattedPhoneNumber' => $this->formattedPhoneNumber,
'phone' => new PhoneResource($this->resource),
'locations' => $this->locations,
'mission' => $this->when(
!is_null($this->mission),
fn (): array => explode(PHP_EOL, $this->mission, 5)
),
'rodo' => $this->when(
!is_null($this->rodo),
$this->rodo
),
];
}
}