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();
755k questions
754k answers
5 comments
53.3k users