Answers for "get unique value collection laravel"

PHP
1

get unique values in laravel

$users = User::select('name')->distinct()->get();
Posted by: Guest on February-19-2021
0

laravel collection unique

$users = $users->unique();
Posted by: Guest on July-24-2021

Code answers related to "get unique value collection laravel"

Browse Popular Code Answers by Language