How to use order by for multiple columns in Laravel 4?

Posted by Jessica Taylor | Updated on

Want to use order by for multiple columns in Laravel 4? You can simply invoke orderBy() as many times as you need it. For instance:

Produces the following query:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers