Answers for "how to use order by in laravel"

PHP
5

order By Asc in laravbel

->orderBy('id', 'DESC');
Posted by: Guest on October-05-2020
1

laravel order by

$users = DB::table('users')
         -> orderBy('name', 'desc')
         -> get();
Posted by: Guest on March-09-2021
0

orderby in laravel

$users = DB::table('users')
         -> orderBy('name', 'desc')
         -> get();
Posted by: Guest on December-22-2020

Code answers related to "how to use order by in laravel"

Browse Popular Code Answers by Language