sort laravel eloquent
snippet in php

sort laravel eloquent

user400

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