Level 70
If I get you properly, then you might be looking for that-
$listOfUser = [1, 3, 5, 6, 8, 9];
$users = DB::table('users')
->whereIn('user_id', $listOfUser)
->get();
Now you can print User object.
1 like