DB:table orderby('id','DESC') laravel

PHP
->orderBy('id', 'DESC');$posts = Post::orderBy('id', 'DESC')->get();

Source

Also in PHP: