www.bdxw.net > lArAvEl All orDErBy

lArAvEl All orDErBy

直接在后面加上另一个orderBy就行了。例如 User::orderBy('name', 'DESC') ->orderBy('email', 'ASC') ->get(); 会产生这样的sql语句效果: SELECT * FROM `users` ORDER BY `name` DESC, `email` ASC

网站地图

All rights reserved Powered by www.bdxw.net

copyright ©right 2010-2021。
www.bdxw.net内容来自网络,如有侵犯请联系客服。zhit325@qq.com