我正在尝试获取MongoDB中的用户列表。是空的_id
,所以我无法正确处理它。如何_id
使用MongoDB for Laravel获取文档?
{
"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"
}]
}