laravel 5では、以下のクエリビルダーを使用しています
$user_social = DB::table('users')
->where('email','=',$credentials['email'])
->where('facebook', '!=', '')
->orWhere('google', '!=', '')
->get(['facebook','google']);
そして、クエリビルダーによって生成されたこのクエリを取得しています
"select * from `users` where `email` = ? and `facebook` != ? or `google` != ?"
このようなクエリを作成するために必要な変更。
"select * from `users` where `email` = ? and (`facebook` != ? or `google` != ?")
ご協力いただきありがとうございます。