Answers for "laravel order by eloquent asc"

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

Browse Popular Code Answers by Language