Answers for "laravel model order by and where desc"

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

Code answers related to "laravel model order by and where desc"

Browse Popular Code Answers by Language