Fix Create
This commit is contained in:
@@ -28,8 +28,8 @@ class PersonResource extends JsonResource
|
||||
'phone' => $this->phone,
|
||||
'email' => $this->email,
|
||||
'blood_type' => $this->blood_type,
|
||||
'weight' => (float) $this->last_weight_kg,
|
||||
'height' => (float) $this->last_height_cm,
|
||||
'weight' => !empty($this->last_weight_kg) ? (float) $this->last_weight_kg : null,
|
||||
'height' => !empty($this->last_weight_kg) ? (float) $this->last_height_cm : null,
|
||||
'relation_with_owner' => ($this->user && $this->user->person_id == $this->id) ? 'Self' : $this->pivot->relation_with_owner ?? null,
|
||||
'marital_status' => $this->marital_status,
|
||||
'last_education' => $this->last_education,
|
||||
|
||||
Reference in New Issue
Block a user