Answers for "get unique row in laravel on the basis of column eloquent"

PHP
1

get unique values in laravel

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

get the unique rows from table laravel

$categories = Machine::distinct('category')->pluck('category');
Posted by: Guest on August-28-2021

Code answers related to "get unique row in laravel on the basis of column eloquent"

Browse Popular Code Answers by Language