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:-

Total Page Visits: 289 - Today Page Visits: 2