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