feat: add height to users

This commit is contained in:
2026-05-18 17:23:19 +02:00
parent 5a81c27665
commit 19d106a3ed
4 changed files with 31 additions and 0 deletions
+1
View File
@@ -16,6 +16,7 @@ class UpdateUserRequest extends FormRequest
return [
'name' => ['sometimes', 'string', 'max:255'],
'bio' => ['sometimes', 'nullable', 'string'],
'height' => ['sometimes', 'nullable', 'integer'],
'avatar' => ['sometimes', 'nullable', 'image', 'max:2048'],
'nutritionGoals' => ['sometimes', 'array'],
'nutritionGoals.calories' => ['required_with:nutritionGoals', 'integer', 'min:0', 'max:100000'],
+1
View File
@@ -18,6 +18,7 @@ class UserResource extends JsonResource
return [
'name' => $this->name,
'email' => $this->email,
'height' => $this->height,
'avatarUrl' => $this->avatar_url ? asset(Storage::url($this->avatar_url)) : null,
'bio' => $this->bio,
'nutritionGoals' => [