count all table rows with remove same value laravel code example Example: remove repeated columns laravel $unique = $collection->unique();