feat: add user fields

This commit is contained in:
2026-05-21 12:02:02 +02:00
parent 9d67a2c335
commit 6ac36e3de4
12 changed files with 262 additions and 15 deletions
+5
View File
@@ -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,