'float', 'carbohydrates' => 'float', 'cholesterol' => 'float', 'fat' => 'float', 'protein' => 'float', 'serving_size' => 'float', 'serving_weight' => 'float', 'sodium' => 'float', ]; /** * Get the food amounts using this food. */ public function foodAmounts(): HasMany { return $this->hasMany(FoodAmount::class); } }