mercredi 6 mai 2015

Laravel Querybuilder how to skip and take rows from newest to oldest?

Is there a way to skip and take rows from newest to oldest using Laravel Querybuilder?

This is what I currently have:

DB::table('decks')->skip(10)->take(5)->get();

It skips from the oldest to the newest. Is there a way to make skip start from the newest rows?

Aucun commentaire:

Enregistrer un commentaire