This might be quite easy but have no idea how to.
I have a table that can have repeated values for a particular non-key column field. How do I write a SQL query usin
You should use groupby. In Query Builder you can do it this way:
groupby
$users = DB::table('users') ->select('id','name', 'email') ->groupBy('name') ->get();