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?