innerjoin distinct not working laravel 7 code example Example: select distinct laravel $items = DB::table('item')->select('item_name')->distinct()->get();