select distinct in laravel query builder code example Example: select distinct laravel $items = DB::table('item')->select('item_name')->distinct()->get();