Get only the most recent item by relation and avoid duplicate

前端 未结 0 1718
北恋
北恋 2021-01-30 04:34

I make an eloquent query :

$data = HealthItem::whereIn(\'person_id\', $arrPersons)
        ->findByCategoryGroup(\'vaccines\')
        ->orderBy(\'name\', \         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题