Answers for "laravel query order desc"

PHP
5

laravel order by desc

$posts = Post::orderBy('id', 'DESC')->get();
Posted by: Guest on December-22-2020
1

laravel order by raw

$orders = DB::table('orders')
                ->orderByRaw('updated_at - created_at DESC')
                ->get();
Posted by: Guest on May-04-2020

Browse Popular Code Answers by Language