Can anyone tell me how I order my posts by ‘id’ descending in Laravel?
If you are using the post as a model, you can just use orderBy or idDescending to order your posts.
$posts = Post::orderBy('id', 'DESC')->get();
// or
$posts = Post::idDescending()->get();