Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. Collection {#217 ▼
  2.  
  3. #items: array:7 [▼
  4.  
  5. 0 => {#397 ▼
  6.  
  7. +"item_id": 1
  8.  
  9. +"amount": "4"
  10.  
  11. }
  12.  
  13. 1 => {#402 ▼
  14.  
  15. +"item_id": 3
  16.  
  17. +"amount": "1"
  18.  
  19. }
  20.  
  21. 2 => {#396 ▶}
  22.  
  23. 3 => {#213 ▶}
  24.  
  25. 4 => {#399 ▶}
  26.  
  27. 5 => {#400 ▶}
  28.  
  29. 6 => {#398 ▶}
  30.  
  31. ]
  32.  
  33. }
  34.  
  35. $union = $collection->union([2 => ['0']]);
  36.  
  37. $union = $collection->merge([2 => ['0']]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement