How to handle an array item in collection

Ask New Question
  • How to handle an array item in collection

    I have created a collection of the data coming from an API

    $collection = collect([
    
    'items' =  collect($response->items)
    
    ]);

    Now in items a subitem contains array. How to get that? does anyone have any idea?

    Reply
0 Replies
Reply To: How to handle an array item in collection
Your information: