Laravel order oleh
$users = DB::table('users')
-> orderBy('name', 'desc')
-> get();
unmeego
$users = DB::table('users')
-> orderBy('name', 'desc')
-> get();
// Make sure column names are correct
$inquiries = Inquiry::orderBy('status', 'ASC')
->orderBy('created_at', 'DESC')
->get();
$inquiries = Inquiry::all()->sortByDesc('created_at')->sortByDesc('Status')->values();