laravel将数据库对象转为数组的方法

亲测有效

array_map('get_object_vars', $data);

猜你喜欢

转载自www.cnblogs.com/lamp01/p/9141074.html