$query->groupBy('eposta')->having(DB::raw('count(id)', '>', 1)) şeklinde bir kullanım deneyebilirsiniz.