feat: add user fields
This commit is contained in:
@@ -23,6 +23,11 @@ class UserResource extends JsonResource
|
||||
'height' => $this->height,
|
||||
'avatarUrl' => $this->avatar_url ? asset(Storage::url($this->avatar_url)) : null,
|
||||
'bio' => $this->bio,
|
||||
'physicalActivityLevel' => $this->physical_activity_level,
|
||||
'weightGoal' => $this->weight_goal,
|
||||
'pacePreference' => $this->pace_preference,
|
||||
'sex' => $this->sex,
|
||||
'dateOfBirth' => $this->date_of_birth?->toDateString(),
|
||||
'nutritionGoals' => [
|
||||
'calories' => (int) $this->daily_calorie_goal,
|
||||
'proteins' => (float) $this->daily_protein_goal,
|
||||
|
||||
Reference in New Issue
Block a user