Home  >  Q&A  >  body text

Can reverse paging be implemented? Like the paging method in the student management system.

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

aTomaTom2497 days ago1608

reply all(4)I'll reply

  • 韦小宝

    韦小宝2018-01-11 09:22:36

    This can be achieved using flashback query.

    reply
    0
  • aTom

    $studentList = StudentModel::paginate(12); How to modify the code to implement flashback query? How to deal with objects

    aTom · 2018-01-12 18:02:19
    aTom

    $studentList = StudentModel::order('id', 'desc') -> paginate(12); That's it. Thanks

    aTom · 2018-01-12 18:20:58
  • ringa_lee

    ringa_lee2018-01-11 09:16:00

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

    reply
    0
  • Cancelreply