I am using jenssegers
mongodb
package for connecting Laravel with mongo. I have a collection named consumer_report
in which there is a key name as consumer_id
which is an Object Id. i want to match with my id.but it does not show any error.
Here is my query
$val = DB::connection('mongodb')->collection('consumers_locations')->where('consumer_id','='57b33c810a56a0a81a9b50b7')->get();
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2hsRMk1
via IFTTT
Aucun commentaire:
Enregistrer un commentaire