Question and answer is powered by AnsPress.io
I want to select data from database using order by desc in laravel 5.2. I don’t know what is the code
My first guess is that the column isn’t of date type in your database table.
As for two orders, you can just chain method calls, like so:
<code>User::orderBy(‘created_at’, ‘desc’)->orderBy(‘something’, ‘asc’);</code>
Hope I could help.