single recipe nutrition

This commit is contained in:
Artur Nowakowski 2020-01-07 21:16:38 +01:00
parent 892e42ba33
commit dd0a184a4c

View File

@ -43,7 +43,8 @@ class RecipesRepository implements RecipesRepositoryInterface
'name' => $rawRecipe['name'],
'description' => $rawRecipe['description'],
'ingredients' => $this->processIngredients($rawRecipe['ingredients']),
'steps' => $rawRecipe['steps']->pluck('step')
'steps' => $rawRecipe['steps']->pluck('step'),
'nutrition' => $rawRecipe['nutrition']
];
return $recipe;