我正在尝试获取 MongoDB 中用户列表。由于
_id
为空,我无法正确处理它。
如何使用 Laravel 的 MongoDB 获取文档的 _id
?{
"total": 1,
"per_page": 15,
"current_page": 1,
"last_page": 1,
"next_page_url": null,
"prev_page_url": null,
"from": 1,
"to": 1,
"data": [{
"_id": {},
"name": "Firstname Lastname",
"email": "user@gmail.com",
"password": "$2y$10$fmTpx5k0FdWC5HEqUcBtKe2nwZzt2nwSZ6oht8d3ytsuh5l7Kh8O2",
"updated_at": {},
"created_at": {},
"remember_token": "k7FQe0xbE5GJ6qPL9QK9CsHQrmBOKQkBO0zyKzkKibvRwnVL2tDXBBvK8zFW"
}]
}