remove duplicate models from laravel collection code example Example: laravel collection remove duplicates $unique = $collection->unique();