order by laravel asec code example
Example 1: order By Asc in laravbel
->orderBy('id', 'DESC');
Example 2: laravel order by
$users = DB::table('users')
-> orderBy('name', 'desc')
-> get();
->orderBy('id', 'DESC');
$users = DB::table('users')
-> orderBy('name', 'desc')
-> get();