Limited Time Offer!

For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!

Enroll Now

How to get data from the database in descending order in laravel.

Through Model

To get data from the database in descending order(by default it returns in ascending order) or the latest data we have added we use latest() method. See the below image of code for help:-