laravel count distinct

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

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