84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
Laravel's orderBy('a','desc'), if I still want to sort b in descending order under the same situation as a, how should I write it
学习是最好的投资!
Write orderBy('b','desc') directly at the end;You can use the ->toSql() method to view the executed sql statement for easy debugging.
->orderBy('a','desc')->orderBy('b','desc') //可以自己输出下sql看看 DB::connection()->enableQueryLog(); var_dump(DB::getQueryLog());
Write orderBy('b','desc') directly at the end;
You can use the ->toSql() method to view the executed sql statement for easy debugging.