Skip to content

Commit

Permalink
Update -> add price
Browse files Browse the repository at this point in the history
  • Loading branch information
soheilkhaledabdi committed Feb 29, 2024
1 parent 3d05f04 commit 5707208
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/Http/Controllers/api/v1/OrderController.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ protected function mapProducts($products)
return $products->map(function ($product) {
return [
'title' => $product?->product?->title,
'image' => $product?->product?->image
'image' => $product?->product?->image,
'price' => $product?->product?->price
];
});
}
Expand Down

0 comments on commit 5707208

Please sign in to comment.