mardi 22 novembre 2016

Select second last record with Laravel - eloquent

How can i select the next to last record added to a table. I can select the last record like -

transition::order_by('created_at', 'desc')->first();



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire