Answers for "how to make distinct in laravel query"

PHP
4

select distinct laravel

$items = DB::table('item')->select('item_name')->distinct()->get();
Posted by: Guest on June-30-2020
2

eloquent get distinct

$items = DB::table('item')->select('item_name')->distinct()->get();
Posted by: Guest on September-20-2020

Code answers related to "how to make distinct in laravel query"

Browse Popular Code Answers by Language