Laravel Eloquent 等价于 MYSQL DISTINCT 查询多列

Laravel Eloquent Equivalent for MYSQL DISTINCT query multiple columns

在 eloquent 中是否有对此的等效查询?

 SELECT DISTINCT agent_code,ord_amount FROM orders

尝试这样的事情:

Order::select('agent_code', 'ord_amount')->distinct()->get();

尝试使用此 eloquent 查询:

$orders = Order::select('agent_code', 'ord_amount')->distinct()->orderBy('agent_code')->get();