How to print the values not the objetc IEnumerable

I have this problem about display the values of a list which is inside another list, I will post the json and if you need more tell me please “HotelAvailSideFilterResult”: { “listaServices”: \[ \[ { “code”: “APCO”, “description”: “Aptos./Hab. con cocina”, “font”: null }, { “code”: “CAFE”, “description”: “Cafetería”, “font”: null }, { “code”: “CFTE”,…

Details

Laravel PHP: how to join each element of collection after update?

I have Clients collection in Laravel. $clients = Client::all(); I need to update it with a user’s name for each item inside a collection. This is my code: $clients = Client::all(); $clients->each(function ($item, $key) { if ($item->user()->first()) { $user = $item->user()->first(); $name = $user->name; } else $name = ”; $client = collect($item); $client = $client->union([‘user’…

Details