user()?->hasCompletedNutritionOnboarding() === true; } /** * Get the validation rules that apply to the request. * * @return array|string> */ public function rules(): array { return [ 'weightKg' => ['required', 'numeric', 'min:35', 'max:300'], 'measuredAt' => ['sometimes', 'nullable', 'date', 'before_or_equal:now'], ]; } }