where(function ($q) use($game) { $q->orWhere('android_game_id', $game->id)->orWhere('ios_game_id', $game->id); }); } }