Can reverse paging be implemented? Like the paging method in the student management system.
aTom
aTom 2018-01-10 17:00:22
0
4
1583

The paging in the student management system is very good. Can reverse paging be implemented? In practical applications, recently entered data is used more frequently.

无标题.png

aTom
aTom

reply all(2)
lge

This can be achieved using flashback query.

  • reply $studentList = StudentModel::paginate(12); How to modify the code to implement flashback query? How to deal with objects
    aTom author 2018-01-12 18:02:19
  • reply $studentList = StudentModel::order('id', 'desc') -> paginate(12); That's it. Thanks
    aTom author 2018-01-12 18:20:58
ringa_lee

It can be achieved, as long as you arrange the data properly

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!