I need to grab rows of user
s where rows of item
s exist. Here is my code so far:
$users = DB::table('users')
->join('orders', 'orders.user_id', '=', 'users.id')
->join('items', 'items.user_id', '=', 'users.id');
How do I add a where condition that will only select user
s that have at least one item
?