$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?
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1QIlc4h
via IFTTT
Aucun commentaire:
Enregistrer un commentaire