Displaying collection of tags field inside an object

I’m working on a portfolio project where the project collection need to be filtered by tags. Normally I would get the tag collection like this:

$tags = $projects->pluck('tags', ',', true);

But the tags on all the projects are inside an object.

projectInfo()->toObject()

Is there a way to get the collection or should I take it out of the object?

You would have to loop through all projects and get the tags from each page. Pluck will not work for this use case.

Thanks! Im just going to move it out of the object :slight_smile: