order_by laravel db code example Example: laravel order by $users = DB::table('users') -> orderBy('name', 'desc') -> get();