- append more informations from api
This commit is contained in:
@@ -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
|
||||
),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user