laravel eloquent select unique values of column code example Example: get unique values in laravel $users = User::select('name')->distinct()->get();