Q:

eloquent get distinct

$items = DB::table('item')->select('item_name')->distinct()->get();
1
$ad->getcodes()->distinct('pid')->count('pid');
0

New to Communities?

Join the community