Esempio n. 1
0
 public function getVitaminE()
 {
     $nutrient = $this->nutrients()->whereNutrientId(Nutrient::VitaminE()->getID())->first();
     return $nutrient != null ? $nutrient->pivot->amount_in_food : 0;
 }