I'm trying to make a where ... like in Laravel with MongoDb for my search bar. In mysql I created with:
DB::table('Account')->where('avail_balance','like','%' .$searchValue . '%');
But with MongoDb Jenssegers, I can't use it. It's return nothing.
After search some post in here, I use:
$account = DB::connection('mongodb')->collection('Account')->where('avail_balance',"%{$searchValue}%")->paginate(5);
It's still return nothing.
How I should convert this query from mysql to mongodb?
Thank you very much!