laravel get accending code example
Example 1: order By Asc in laravbel
->orderBy('id', 'DESC');
Example 2: eloquent model sort by ascending order
$posts = Post::orderBy('id', 'DESC')->get();
->orderBy('id', 'DESC');
$posts = Post::orderBy('id', 'DESC')->get();