SyntaxFix
Write A Post
Hire A Developer
Questions
If you have a Collection of stdClass objects, you could try with this:
$data = $data->map(function ($item){ return get_object_vars($item); });