Answers for "order by in model 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

Browse Popular Code Answers by Language