-
Notifications
You must be signed in to change notification settings - Fork 1.4k
How I can insert nested data in Laravel 8 (using MongoDB) #2480
Unanswered
jovanoski992
asked this question in
Q&A
-
MongoDB 6.0.2 Community
PHP Version: 7.4.29
I would like to have something like this (see addresses part of the json)
{
"_id": {
"$oid": "6374384f84ce56d1bd0e0942"
},
"name": "test",
"email": "test@test.com",
"addresses": {
{
"street": "Test str",
"number": "10",
"City": "10",
"Country": "1"
},
{
"street": "Test str 2",
"number": "12",
"City": "11",
"Country": "1"
}
}
"password": "2ドルy10ドル$wpF/.hEJTxc.5Vacu8qRneuqUVMb0usEsRjVFNshkmKx/2Tz3.tju",
"updated_at": {
"$date": {
"$numberLong": "1668560975452"
}
},
"created_at": {
"$date": {
"$numberLong": "1668560975452"
}
}
}
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment