Obtenez des données dans l'ordre dans Laravel
->orderBy('id', 'DESC');
Amit Halder
->orderBy('id', 'DESC');
// 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();
->orderBy('sort_filter')->orderByRaw('LCASE(sort_filter)')
->orderBy('sort_filter')->orderByRaw('LCASE(sort_filter)')
->orderBy('sort_filter')->orderByRaw('LCASE(sort_filter)')