Answers for "i get data use first() get a unique value in it using laravel"

PHP
1

get unique values in laravel

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

Code answers related to "i get data use first() get a unique value in it using laravel"

Browse Popular Code Answers by Language