laravel orderby id ASC code example
Example 1: order By Asc in laravbel
->orderBy('id', 'DESC');
Example 2: laravel 6 orderby
// Make sure column names are correct
$inquiries = Inquiry::orderBy('status', 'ASC')
->orderBy('created_at', 'DESC')
->get();