Laravel Mongodb Or where in not working as it should be

My Query is :Collection::WhereIn(’email’,$email)->orWhereIn(‘mobile’,$mobile)->get();

The mongo query which is getting executed is :


which is not getting the proper results

Actually the below mongo query gives proper result but how to execute that in laravel.


I am using laravels jeneggers/mongodb package.

Source: laravel

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.