I need to be able to bring back records from an sql stored procedure and display them. but I do not want to show duplicates.
I have stored procedure that brings back all records where ID = the selected ID. It then displays something like this
Yes. To display a single occurrence, you must use "distinct"
$result = DB::table('YourTableName') ->select('id', '//other columns') ->distinct() ->get();
2.1m questions
2.1m answers
60 comments
57.0k users