How to update and insert the data using php and database will be mongodb
'[
{
_id: 5,
unique: true,
name: "Joseph",
password: "mangalore"
},
{
_id: 9,
unique: true,
name: "John",
password: {
passcode1: 1,
passcode2: 2
}
},
{
_id: 10,
unique: true,
name: "Ashraf",
password: {
passcode1: 2,
passcode2: 3
}
},
{
_id: 11,
unique: true,
name: "Rajesh",
password: {
passcode1: 3,
passcode2: 4
}
}
]`
Please tel me how to update and insert the data. i have already done for retrieving and code is
$id = DB::connection('mongodb')->collection('login2')->where('password.passcode1','>',1)->get();
return $id;
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2kLiFD7
via IFTTT
Aucun commentaire:
Enregistrer un commentaire