$notif = DB::table('notifications')->orderBy('updated_at', 'desc')->get();
Above code is to get the values in descending order according to the default column updated_at in laravel 5. Although that will display the values ascending order. How to correct that?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire