4,249
社区成员




public function orderBy($column, $direction = 'asc')
{
$this->orders[] = compact('column', 'direction');
return $this;
}
所以可以这样写
...->orderBy('a','desc')->orderBy('b','desc')->...
这样写应该也可以
...->orderBy(['a', 'b'], ['desc', 'desc'])->...