mardi 6 octobre 2015

how to check two fields having same values in same table in laravel 5 with mongodb

I have to check the two fields having same values in same table in laravel 5. I am using Mongodb.

{
"id": "565d23ef5c2a4c9454355679",
"title": "Event1",
"summary": "test",
"total": NumberInt(87),
"remaining": NumberInt(87),
"status": "1"
}

I need to check "total" and "remaining" fields are same. How to write query in laravel 5.1. Please help.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire