Add feature tests for Doctor-related functionalities
This commit is contained in:
@@ -17,10 +17,10 @@ class ReportResource extends JsonResource
|
||||
{
|
||||
return [
|
||||
'id' => $this->id,
|
||||
'document' => $this->relationLoaded('document') ? $this->document->only(['id','code']) : null,
|
||||
'document' => $this->relationLoaded('document') ? optional($this->document)->only(['id','code']) : null,
|
||||
'status' => $this->status,
|
||||
'body' => $this->body,
|
||||
'doctor' => $this->relationLoaded('doctor') ? $this->doctor->only(['id','fullname']) : null,
|
||||
'doctor' => $this->relationLoaded('doctor') ? optional($this->doctor)->only(['id','fullname']) : null,
|
||||
'submitted_at' => verta($this->submitted_at)->format('%Y/%m/%d - H:i'),
|
||||
'submitted_at_form' => $this->submitted_at,
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user