Answers for "laravel order"

PHP
5

laravel order by desc

$posts = Post::orderBy('id', 'DESC')->get();
Posted by: Guest on December-22-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