Laravel Order by desc
$posts = Post::orderBy('id', 'DESC')->get();
Akram Bahluol
$posts = Post::orderBy('id', 'DESC')->get();
->orderBy('id', 'DESC');
$orders = DB::table('orders')
->orderByRaw('updated_at - created_at DESC')
->get();