I was wondering if there is a way to use whereIn with an array of arrays, something like the where with array
User::where(['user_id' => $currentUser, 'group_id' => $currentGroup]);
so i'm looking for this:
User::whereIn(['group' => $availableGroups, 'session' => $currentSessions]).
which should be equivalent to using the whereIn clause twice.
I was thinking of solving this like:
foreach (query as $key => $value)
$userQuery->whereIn($key, $value);
I was wondering if there is a better way.