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();
1.4m articles
1.4m replys
5 comments
57.0k users