laravel count distinct

$result->count(\DB::raw("distinct(material_id)"));

posted @ 2017-01-19 09:41  桔子木木  阅读(2468)  评论(0)    收藏  举报