how to get unique string in laravel code example Example: get unique values in laravel $users = User::select('name')->distinct()->get();