Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel collection distinct

$dataList = [1,2,4,5,3,2,1,98,1,2,4,5,6];

$dataList  = collect( $dataList )->unique();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #collection #distinct
ADD COMMENT
Topic
Name
1+8 =