feat: meal post ingredients
This commit is contained in:
@@ -29,6 +29,7 @@ class MealPostsResource extends JsonResource
|
||||
'eatenAt' => $this->eaten_at,
|
||||
'createdAt' => $this->created_at,
|
||||
'updatedAt' => $this->updated_at,
|
||||
'ingredients' => MealPostIngredientsResource::collection($this->whenLoaded('ingredients')),
|
||||
|
||||
'user' => [
|
||||
'name' => $user?->name,
|
||||
|
||||
Reference in New Issue
Block a user